diff --git a/core/modules/system/lib/Drupal/system/Tests/DrupalKernel/DrupalKernelSiteTest.php b/core/modules/system/lib/Drupal/system/Tests/DrupalKernel/DrupalKernelSiteTest.php index 4dafc3e..d6f9fe8 100644 --- a/core/modules/system/lib/Drupal/system/Tests/DrupalKernel/DrupalKernelSiteTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/DrupalKernel/DrupalKernelSiteTest.php @@ -47,7 +47,8 @@ class: Drupal\Core\Cache\MemoryBackendFactory EOD; file_put_contents($this->siteDirectory . '/services.yml', $doc); - $this->rebuildContainer(); + // Rebuild the container. + $this->kernel->updateModules(array()); $this->assertTrue($this->container->has('site.service.yml')); $this->assertIdentical(get_class($this->container->get('cache.backend.database')), 'Drupal\Core\Cache\MemoryBackendFactory');