core/tests/Drupal/KernelTests/Core/Path/PathValidatorTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tests/Drupal/KernelTests/Core/Path/PathValidatorTest.php b/core/tests/Drupal/KernelTests/Core/Path/PathValidatorTest.php index b4be4ae..3463dce 100644 --- a/core/tests/Drupal/KernelTests/Core/Path/PathValidatorTest.php +++ b/core/tests/Drupal/KernelTests/Core/Path/PathValidatorTest.php @@ -58,7 +58,7 @@ public function testGetUrlIfValidWithoutAccessCheck() { $requestContext->setMethod($method); /** @var \Drupal\Core\Url $url */ - $url = $pathValidator->getUrlIfValidWithoutAccessCheck($entity->toUrl()->toString()); + $url = $pathValidator->getUrlIfValidWithoutAccessCheck($entity->toUrl()->toString(TRUE)->getGeneratedUrl()); $this->assertEquals($method, $requestContext->getMethod()); $this->assertInstanceOf(Url::class, $url); $this->assertSame($url->getRouteParameters(), ['entity_test' => $entity->id()]);