From 0b2d90096ab1e66b67e01cb7c403eaf80ea38844 Mon Sep 17 00:00:00 2001 From: llaffont <llaffont@git-test.afi-sa.fr> Date: Sat, 20 Oct 2012 07:24:53 +0000 Subject: [PATCH] Correction tests suite aux modifs de session perfs OPAC --- .../modules/telephone/controllers/IndexControllerTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/application/modules/telephone/controllers/IndexControllerTest.php b/tests/application/modules/telephone/controllers/IndexControllerTest.php index d6cb90bb2c3..cef6e2cb4bf 100644 --- a/tests/application/modules/telephone/controllers/IndexControllerTest.php +++ b/tests/application/modules/telephone/controllers/IndexControllerTest.php @@ -475,13 +475,14 @@ class IndexControllerTelephoneWithNoProfilTelephoneTest extends Zend_Test_PHPUni ->setBrowser('opac') ->setTitreSite('portail') ->setCfgAccueil($cfg_accueil)); - $_SESSION['id_profil'] = 1; + + Zend_Registry::get('session')->id_profil = 1; Storm_Test_ObjectWrapper::onLoaderOfModel("Class_Profil") ->whenCalled('findFirstBy') ->with(array('BROWSER' => 'telephone')) ->answers(null); - $this->dispatch('/'); + $this->dispatch('/', true); } -- GitLab