Loading core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkNotExistingInternalConstraintValidatorTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -73,7 +73,7 @@ public function testValidateFromNonExistingRoute(): void { $urlGenerator->expects($this->any()) ->method('generateFromRoute') ->with('example.not_existing_route', [], []) ->willReturn(new RouteNotFoundException()); ->willThrowException(new RouteNotFoundException()); $url->setUrlGenerator($urlGenerator); $link = $this->createMock(LinkItemInterface::class); Loading @@ -82,7 +82,7 @@ public function testValidateFromNonExistingRoute(): void { ->willReturn($url); $context = $this->createMock(ExecutionContextInterface::class); $context->expects($this->never()) $context->expects($this->once()) ->method('addViolation'); $this->validate($link, $context); Loading Loading
core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkNotExistingInternalConstraintValidatorTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -73,7 +73,7 @@ public function testValidateFromNonExistingRoute(): void { $urlGenerator->expects($this->any()) ->method('generateFromRoute') ->with('example.not_existing_route', [], []) ->willReturn(new RouteNotFoundException()); ->willThrowException(new RouteNotFoundException()); $url->setUrlGenerator($urlGenerator); $link = $this->createMock(LinkItemInterface::class); Loading @@ -82,7 +82,7 @@ public function testValidateFromNonExistingRoute(): void { ->willReturn($url); $context = $this->createMock(ExecutionContextInterface::class); $context->expects($this->never()) $context->expects($this->once()) ->method('addViolation'); $this->validate($link, $context); Loading