core/tests/Drupal/Tests/Core/UnroutedUrlTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/tests/Drupal/Tests/Core/UnroutedUrlTest.php b/core/tests/Drupal/Tests/Core/UnroutedUrlTest.php index 80b85fc..777b79b 100644 --- a/core/tests/Drupal/Tests/Core/UnroutedUrlTest.php +++ b/core/tests/Drupal/Tests/Core/UnroutedUrlTest.php @@ -84,7 +84,7 @@ public function providerFromUri() { // A protocol-relative URL. ['//www.drupal.org', TRUE], // A root-relative URL. - ['/robots.txt', FALSE], + ['/robots.txt', FALSE, 'base:robots.txt'], // An internal, unrouted, base-relative URI. ['base:robots.txt', FALSE], // Base-relative URIs with special characters. @@ -167,9 +167,9 @@ public function testIsExternal($uri, $is_external) { * * @covers ::toString */ - public function testToString($uri) { + public function testToString($uri, $is_external, $expected_uri) { $url = Url::fromUri($uri); - $this->assertSame($uri, $url->toString()); + $this->assertSame(isset($expected_uri) ? $expected_uri : $uri, $url->toString()); } /**