Commit cbd903cc authored by catch's avatar catch
Browse files

Issue #3542967 by dcam, smustgrave, mondrake: Bad test in...

Issue #3542967 by dcam, smustgrave, mondrake: Bad test in LinkNotExistingInternalConstraintValidatorTest

(cherry picked from commit a2b731f0)
parent 6c481f74
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
@@ -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);