diff --git a/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php b/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php index 3030b8d33f7dace96cc394052f525fec61cb85eb..7f3bc3e866c48a973325908594db387f06f519b3 100644 --- a/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php +++ b/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ require_once 'AbstractControllerTestCase.php'; +xdebug_break(); abstract class ProfilOptionsControllerWithProfilAdulteTestCase extends AbstractControllerTestCase { protected function _loginHook($account) { @@ -285,29 +286,6 @@ class ProfilOptionsControllerProfilAdulteTest extends ProfilOptionsControllerWit } -class ProfilOptionsControllerPopupLoginProfilAdulteTest extends ProfilOptionsControllerProfilJeunesseWithPagesJeuxMusiqueTestCase { - protected - $_json, - $_xpath; - - public function setUp() { - parent::setUp(); - - Class_AdminVar::getLoader() - ->newInstanceWithId('INTERDIRE_ENREG_UTIL') - ->setValeur(0); - - $this->dispatch('/opac/auth/popup-login/render/popup', true); - $this->_xpath = new Storm_Test_XPath(); - $this->_json = json_decode($this->_response->getBody()); - } - /** @test **/ - public function popupLoginShouldUseLoginAccueilCfg() { - $this->_xpath->assertXPath($this->_json->content, - '//input[@id="login"][@value="Par ici la connexion"]',$this->_json->content); - } - -} class ProfilOptionsControllerViewProfilAdulteTest extends ProfilOptionsControllerWithProfilAdulteTestCase { @@ -715,6 +693,32 @@ abstract class ProfilOptionsControllerProfilJeunesseWithPagesJeuxMusiqueTestCase +class ProfilOptionsControllerPopupLoginProfilAdulteTest extends ProfilOptionsControllerProfilJeunesseWithPagesJeuxMusiqueTestCase { + protected + $_json, + $_xpath; + + public function setUp() { + parent::setUp(); + + Class_AdminVar::getLoader() + ->newInstanceWithId('INTERDIRE_ENREG_UTIL') + ->setValeur(0); + + $this->dispatch('/opac/auth/popup-login/render/popup', true); + $this->_xpath = new Storm_Test_XPath(); + $this->_json = json_decode($this->_response->getBody()); + } + + + /** @test **/ + public function popupLoginShouldUseLoginAccueilCfg() { + $this->_xpath->assertXPath($this->_json->content, + '//input[@id="login"][@value="Par ici la connexion"]',$this->_json->content); + } +} + + class ProfilOptionsControllerProfilJeunesseAndJeuxTest extends ProfilOptionsControllerProfilJeunesseWithPagesJeuxMusiqueTestCase { /** @test */