diff --git a/tests/application/modules/opac/controllers/NoticeAjaxControllerTest.php b/tests/application/modules/opac/controllers/NoticeAjaxControllerTest.php index e0673a50f3af2bd4b6d8d6611d7d4a3c5b8f2448..1ae931a782b22a40538941c4b31547e6a50e368b 100644 --- a/tests/application/modules/opac/controllers/NoticeAjaxControllerTest.php +++ b/tests/application/modules/opac/controllers/NoticeAjaxControllerTest.php @@ -481,7 +481,9 @@ abstract class NoticeAjaxControllerExemplairesTestCase extends AbstractControlle $mock_sql = Storm_Test_ObjectWrapper::on(Zend_Registry::get('sql')); Zend_Registry::set('sql', $mock_sql); - $this->fixture('Class_IntBib', ['id' => 4,'comm_sigb' => Class_IntBib::COM_NANOOK]); + $this->fixture('Class_IntBib', ['id' => 4, + 'comm_sigb' => Class_IntBib::COM_NANOOK, + 'comm_params' => serialize(['url_serveur' => ''])]); $this->fixture('Class_bib', ['id' => 99, ]); @@ -520,12 +522,11 @@ class NoticeAjaxControllerExemplairesWithIdBibs extends NoticeAjaxControllerExem public function setUp() { parent::setUp(); - $this->_notice->addExemplaire( $this->fixture('Class_Exemplaire', ['id' =>777, 'id_bib' => 77, - 'id_int_bib' => 4, + 'id_int_bib' => 0, 'id_notice' => 123, 'annexe' => 'MOUL', 'section' => 'A9', diff --git a/tests/library/Class/UserGroupTest.php b/tests/library/Class/UserGroupTest.php index 19dc12c2d791b68bc76480f7b2dc1d7a3e521992..6279c865aedb510b0c30b21e7eec0b6afe443221 100644 --- a/tests/library/Class/UserGroupTest.php +++ b/tests/library/Class/UserGroupTest.php @@ -23,6 +23,8 @@ abstract class UserGroupsTestCase extends Storm_Test_ModelTestCase { public function setUp() { parent::setUp(); + Class_SessionFormation::beVolatile(); + $this->_florence = $this->fixture('Class_Users', ['id' => 1, 'login' => 'flo',