diff --git a/tests/application/modules/opac/controllers/AuthControllerTest.php b/tests/application/modules/opac/controllers/AuthControllerTest.php index 08c41ee2321b53626108204f8a35a171c95b12a0..d5bc413a20d165f47583e192e48eb8d651f65754 100644 --- a/tests/application/modules/opac/controllers/AuthControllerTest.php +++ b/tests/application/modules/opac/controllers/AuthControllerTest.php @@ -864,7 +864,7 @@ class AuthControllerPostTest extends AuthControllerNobodyLoggedTestCase { /** @test */ public function emptyUsernameShouldRedirectToReferer() { $this->loggingWithOutFillingUsername(); - $this->assertRedirectTo($this->_referer); + $this->assertRedirectTo(Class_Profil::find(1)->getUrl()); } /* @test */ @@ -1054,9 +1054,10 @@ class AuthControllerBoiteLoginPostTest extends AuthControllerPostSimpleSuccessfu 'display' => ZendAfi_Controller_Action_Helper_FlashMessenger::POPUP]]); } + /** @test */ public function responseShouldRedirectToReferrer() { - $this->assertRedirectTo('/recherche/viewnotice'); + $this->assertRedirectTo(Class_Profil::find(1)->getUrl()); } }