diff --git a/core/tests/Drupal/Tests/KernelTestBase.php b/core/tests/Drupal/Tests/KernelTestBase.php index d59d331..9984a6f 100644 --- a/core/tests/Drupal/Tests/KernelTestBase.php +++ b/core/tests/Drupal/Tests/KernelTestBase.php @@ -217,7 +217,7 @@ protected function bootEnvironment() { // @see /core/tests/bootstrap.php $this->classLoader = $GLOBALS['loader']; - require_once DRUPAL_ROOT . '/core/includes/bootstrap.inc'; + require_once $this->root . '/core/includes/bootstrap.inc'; // Set up virtual filesystem. // Uses a random ID, since created test files may be processed by file diff --git a/core/tests/Drupal/Tests/KernelTestBaseTest.php b/core/tests/Drupal/Tests/KernelTestBaseTest.php index 60cd93d..b68bbb5 100644 --- a/core/tests/Drupal/Tests/KernelTestBaseTest.php +++ b/core/tests/Drupal/Tests/KernelTestBaseTest.php @@ -104,7 +104,8 @@ public function testSetUp() { public function testSetUpDoesNotLeak() { $this->assertArrayNotHasKey('destroy-me', $GLOBALS); - $expected = []; + // We store teh active configuration in the DB. + $expected = ['config' => 'config']; $schema = $this->container->get('database')->schema(); $this->assertEquals($expected, $schema->findTables('%')); }