From 4acd1d09024da448d1526c0101ffac705963778a Mon Sep 17 00:00:00 2001 From: Dave Long <dave@longwaveconsulting.com> Date: Fri, 7 Jun 2024 23:56:45 +0100 Subject: [PATCH] Issue #3207896 by andypost, alexpott: Remove URL generator priming in \Drupal\Tests\BrowserTestBase::installDrupal() --- core/tests/Drupal/Tests/BrowserTestBase.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core/tests/Drupal/Tests/BrowserTestBase.php b/core/tests/Drupal/Tests/BrowserTestBase.php index d0027e137430..f9efa6d3427e 100644 --- a/core/tests/Drupal/Tests/BrowserTestBase.php +++ b/core/tests/Drupal/Tests/BrowserTestBase.php @@ -15,7 +15,6 @@ use Drupal\Core\Database\Database; use Drupal\Core\Test\FunctionalTestSetupTrait; use Drupal\Core\Test\TestSetupTrait; -use Drupal\Core\Url; use Drupal\Core\Utility\Error; use Drupal\Tests\block\Traits\BlockCreationTrait; use Drupal\Tests\node\Traits\ContentTypeCreationTrait; @@ -557,10 +556,6 @@ public function installDrupal() { // as expected. $this->container->get('cache_tags.invalidator')->resetChecksums(); - // Generate a route to prime the URL generator with the correct base URL. - // @todo Remove in https://www.drupal.org/project/drupal/issues/3207896. - Url::fromRoute('<front>')->setAbsolute()->toString(); - // Explicitly call register() again on the container registered in \Drupal. // @todo This should already be called through // DrupalKernel::prepareLegacyRequest() -> DrupalKernel::boot() but that -- GitLab