From 9318aa1606a71016b48e5c340a6475e62bb4ce48 Mon Sep 17 00:00:00 2001 From: catch Date: Tue, 27 Nov 2012 20:42:40 +0000 Subject: [PATCH] Issue #1849118 by sun: Fixed DrupalKernel in DrupalUnitTestBase is dumped. --- .../simpletest/lib/Drupal/simpletest/DrupalUnitTestBase.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/modules/simpletest/lib/Drupal/simpletest/DrupalUnitTestBase.php b/core/modules/simpletest/lib/Drupal/simpletest/DrupalUnitTestBase.php index ac11b8f23c3..7e9c9600346 100644 --- a/core/modules/simpletest/lib/Drupal/simpletest/DrupalUnitTestBase.php +++ b/core/modules/simpletest/lib/Drupal/simpletest/DrupalUnitTestBase.php @@ -89,7 +89,8 @@ abstract class DrupalUnitTestBase extends UnitTestBase { state()->set('system.theme.data', $this->themeData); // Bootstrap the kernel. - $this->kernel = new DrupalKernel('testing', TRUE, drupal_classloader()); + // No need to dump it; this test runs in-memory. + $this->kernel = new DrupalKernel('testing', TRUE, drupal_classloader(), FALSE); $this->kernel->boot(); // Ensure that the module list is initially empty.