diff --git a/core/modules/simpletest/src/KernelTestBase.php b/core/modules/simpletest/src/KernelTestBase.php index 10ddbbce11..952896a244 100644 --- a/core/modules/simpletest/src/KernelTestBase.php +++ b/core/modules/simpletest/src/KernelTestBase.php @@ -216,8 +216,8 @@ protected function setUp() { if (file_exists($directory . '/settings.testing.php')) { Settings::initialize(DRUPAL_ROOT, $site_path, $class_loader); } - // Ensure to set the module list upfront to avoid setting the kernel into - // the pre-installer mode. + // Set the module list upfront to avoid setting the kernel into the + // pre-installer mode. $this->kernel->updateModules([], []); $this->kernel->boot(); @@ -234,8 +234,8 @@ protected function setUp() { // prevents any services created during the first boot from having stale // database connections, for example, \Drupal\Core\Config\DatabaseStorage. $this->kernel->shutdown(); - // Ensure to set the module list upfront to avoid setting the kernel into - // the pre-installer mode. + // Set the module list upfront to avoid setting the kernel into the + // pre-installer mode. $this->kernel->updateModules([], []); $this->kernel->boot(); diff --git a/core/tests/Drupal/KernelTests/KernelTestBase.php b/core/tests/Drupal/KernelTests/KernelTestBase.php index fef5e2311f..180f6e5631 100644 --- a/core/tests/Drupal/KernelTests/KernelTestBase.php +++ b/core/tests/Drupal/KernelTests/KernelTestBase.php @@ -348,8 +348,8 @@ private function bootKernel() { // Bootstrap the kernel. Do not use createFromRequest() to retain Settings. $kernel = new DrupalKernel('testing', $this->classLoader, FALSE); $kernel->setSitePath($this->siteDirectory); - // Boot a new one-time container from scratch. Ensure to set the module list - // upfront to avoid a subsequent rebuild or setting the kernel into the + // Boot a new one-time container from scratch. Set the module list upfront + // to avoid a subsequent rebuild or setting the kernel into the // pre-installer mode. $extensions = $modules ? $this->getExtensionsForModules($modules) : []; $kernel->updateModules($extensions, $extensions);