diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerTestBase.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerTestBase.php index 5b93b5b7c2..eaccc1bdf2 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerTestBase.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerTestBase.php @@ -181,7 +181,8 @@ protected function setUp() { // Not using File API; a potential error must trigger a PHP warning. chmod($this->container->get('app.root') . '/' . $this->siteDirectory, 0777); $this->kernel = DrupalKernel::createFromRequest($request, $class_loader, 'prod', FALSE); - $this->kernel->prepareLegacyRequest($request); + $this->kernel->boot(); + $this->kernel->preHandle($request); $this->container = $this->kernel->getContainer(); // Manually configure the test mail collector implementation to prevent diff --git a/core/tests/Drupal/TestSite/Commands/TestSiteUserLoginCommand.php b/core/tests/Drupal/TestSite/Commands/TestSiteUserLoginCommand.php index 55c92032cd..bff190e492 100644 --- a/core/tests/Drupal/TestSite/Commands/TestSiteUserLoginCommand.php +++ b/core/tests/Drupal/TestSite/Commands/TestSiteUserLoginCommand.php @@ -52,9 +52,9 @@ protected function execute(InputInterface $input, OutputInterface $output) { Settings::initialize($kernel->getAppRoot(), $kernel->getSitePath(), $this->classLoader); $request = Request::createFromGlobals(); - $kernel->prepareLegacyRequest($request); $kernel->boot(); + $kernel->preHandle($request); $container = $kernel->getContainer(); $uid = $input->getArgument('uid');