diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc index e23d397..b0c78fd 100644 --- a/core/includes/install.core.inc +++ b/core/includes/install.core.inc @@ -362,7 +362,6 @@ function install_begin_request(&$install_state) { $kernel = new DrupalKernel($environment, drupal_classloader(), FALSE); $kernel->boot(); - // Enter the request scope and add the Request. // @todo Remove this after converting all installer screens into controllers. $container = $kernel->getContainer(); $container->get('request_stack')->push($request); diff --git a/core/modules/system/src/Tests/Theme/RegistryTest.php b/core/modules/system/src/Tests/Theme/RegistryTest.php index b2bfd3e..46587b2 100644 --- a/core/modules/system/src/Tests/Theme/RegistryTest.php +++ b/core/modules/system/src/Tests/Theme/RegistryTest.php @@ -37,7 +37,6 @@ public static function getInfo() { function testRaceCondition() { // The theme registry is not marked as persistable in case we don't have a // proper request. - \Drupal::getContainer()->enterScope('request'); \Drupal::request()->setMethod('GET'); $cid = 'test_theme_registry'; diff --git a/core/tests/Drupal/Tests/Core/DependencyInjection/ContainerBuilderTest.php b/core/tests/Drupal/Tests/Core/DependencyInjection/ContainerBuilderTest.php index fcc898f..fae6ea5 100644 --- a/core/tests/Drupal/Tests/Core/DependencyInjection/ContainerBuilderTest.php +++ b/core/tests/Drupal/Tests/Core/DependencyInjection/ContainerBuilderTest.php @@ -32,23 +32,6 @@ public static function getInfo() { } /** - * Tests set with a synchronized service. - */ - public function testSetOnSynchronizedService() { - $container = new ContainerBuilder(); - $container->register('baz', 'BazClass') - ->setSynchronized(TRUE); - $container->register('bar', 'BarClass') - ->addMethodCall('setBaz', array(new Reference('baz'))); - - $container->set('baz', $baz = new \BazClass()); - $this->assertSame($baz, $container->get('bar')->getBaz()); - - $container->set('baz', $baz = new \BazClass()); - $this->assertSame($baz, $container->get('bar')->getBaz()); - } - - /** * Tests the get method. * * @see \Drupal\Core\DependencyInjection\Container::get()