diff --git a/tests/application/modules/opac/controllers/IndexControllerTest.php b/tests/application/modules/opac/controllers/IndexControllerTest.php
index e53a5020aeccec16c0d353a8faf952fd22a65d4d..92616bd2638b0037762c9a281c8a443133a24f1c 100644
--- a/tests/application/modules/opac/controllers/IndexControllerTest.php
+++ b/tests/application/modules/opac/controllers/IndexControllerTest.php
@@ -117,10 +117,9 @@ class IndexControllerWithInvitedLevelRestrictionForProfilTest extends AbstractCo
 
 
 	/** @test **/
-	public function profilWithAccessLevelShouldContainsFormAdminAuthLogin() {
+	public function anonymousAccessingProfilWithAccessLevelShouldBeRedirectedToOpacLogin() {
 		$this->dispatch('/opac/index/index/id_profil/1');
-		$this->assertXPath('//form[@name="form"][contains(@action,"/admin/auth/login")]',
-											 $this->_response->getBody());
+		$this->assertRedirectRegex('|^'.BASE_URL.'/auth/login/id_profil/1|');
 	}
 }
 
diff --git a/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php b/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php
index dedf18b57b1d53b20de1d90c9ae4250a8209f6c0..6605a4173632f3fa4a3bc0ccb40ebb23e5758b3a 100644
--- a/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php
+++ b/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php
@@ -1579,7 +1579,7 @@ class UserRoleLevelThreeViewPrivateProfilTest extends AbstractControllerTestCase
 	public function shouldRenderLoginPageWhenProfilAccessLevelIsFour() {
 		$this->private_profil->setAccessLevel(4);
 		$this->dispatch('/opac/');
-		$this->assertModule('admin');
+		$this->assertModule('opac');
 		$this->assertController('auth');
 		$this->assertAction('login');
 	}