Issue #1849118 by sun: Fixed DrupalKernel in DrupalUnitTestBase is dumped.

8.0.x
catch 2012-11-27 20:42:40 +00:00
parent 6d7099d2a3
commit 9318aa1606
1 changed files with 2 additions and 1 deletions

View File

@ -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.