diff --git a/core/modules/system/src/Tests/Routing/DestinationTest.php b/core/modules/system/src/Tests/Routing/DestinationTest.php index 3d45aab..a590d62 100644 --- a/core/modules/system/src/Tests/Routing/DestinationTest.php +++ b/core/modules/system/src/Tests/Routing/DestinationTest.php @@ -7,6 +7,7 @@ namespace Drupal\system\Tests\Routing; +use Drupal\Core\Url; use Drupal\simpletest\WebTestBase; /** @@ -76,7 +77,7 @@ public function testDestination() { \Drupal::configFactory()->getEditable('system.site')->set('page.404', 'system-test/get-destination')->save(); $this->drupalGet('http://example.com', ['external' => FALSE]); $this->assertResponse(404); - $this->assertIdentical('/', $this->getRawContent(), 'External URL is not allowed on 404 pages.'); + $this->assertIdentical(Url::fromRoute('')->toString(), $this->getRawContent(), 'External URL is not allowed on 404 pages.'); } }