FormTest: getRedirectUrl now returns an instance of Icinga\Web\Url

This commit is contained in:
Johannes Meyer 2015-07-21 16:49:59 +02:00
parent 8f2849f32a
commit b4214dcf32
1 changed files with 2 additions and 1 deletions

View File

@ -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();