diff --git a/test/php/library/Icinga/Web/FormTest.php b/test/php/library/Icinga/Web/FormTest.php index 0fff50a3f..df17c4118 100644 --- a/test/php/library/Icinga/Web/FormTest.php +++ b/test/php/library/Icinga/Web/FormTest.php @@ -92,7 +92,8 @@ class FormTest extends BaseTestCase public function testWhetherAnExplicitlySetRedirectUrlIsUsedForRedirection() { - $this->getResponseMock()->shouldReceive('redirectAndExit')->atLeast()->once()->with('special/route'); + $this->getResponseMock()->shouldReceive('redirectAndExit')->atLeast()->once() + ->with(Mockery::on(function ($url) { return $url->getRelativeUrl() === 'special/route'; })); $form = new SuccessfulForm(); $form->setTokenDisabled();