FormTest: getRedirectUrl now returns an instance of Icinga\Web\Url
This commit is contained in:
parent
8f2849f32a
commit
b4214dcf32
|
@ -92,7 +92,8 @@ class FormTest extends BaseTestCase
|
||||||
|
|
||||||
public function testWhetherAnExplicitlySetRedirectUrlIsUsedForRedirection()
|
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 = new SuccessfulForm();
|
||||||
$form->setTokenDisabled();
|
$form->setTokenDisabled();
|
||||||
|
|
Loading…
Reference in New Issue