From 955c925727f93d7a7a5031a34e3e39747f007525 Mon Sep 17 00:00:00 2001 From: pbarroca <pbarroca@afi-sa.fr> Date: Thu, 23 Oct 2014 17:50:19 +0200 Subject: [PATCH] rel #15527 : fix typo in dispatch params in tests --- .../modules/opac/controllers/NoticeajaxController.php | 2 -- .../modules/opac/controllers/NoticeAjaxControllerTest.php | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/application/modules/opac/controllers/NoticeajaxController.php b/application/modules/opac/controllers/NoticeajaxController.php index 5d0efe3f361..f6a27ac515a 100644 --- a/application/modules/opac/controllers/NoticeajaxController.php +++ b/application/modules/opac/controllers/NoticeajaxController.php @@ -153,8 +153,6 @@ class NoticeAjaxController extends Zend_Controller_Action { public function localisationAction() { $id_bib=$this->_request->getParam("id_bib"); - - $cote=$this->_request->getParam("cote"); $code_barres=$this->_request->getParam("code_barres"); diff --git a/tests/application/modules/opac/controllers/NoticeAjaxControllerTest.php b/tests/application/modules/opac/controllers/NoticeAjaxControllerTest.php index aacc1865939..dce7fa6a346 100644 --- a/tests/application/modules/opac/controllers/NoticeAjaxControllerTest.php +++ b/tests/application/modules/opac/controllers/NoticeAjaxControllerTest.php @@ -1556,7 +1556,7 @@ class NoticeAjaxControllerLocalisationWithCoteTest extends NoticeAjaxController ->setCoteFin('999 Z') ->save(); - $this->dispatch('noticeajax/localisation/id_bib/1/cote_barres/123456', true); + $this->dispatch('noticeajax/localisation/id_bib/1/code_barres/123456', true); $this->_json = json_decode($this->_response->getBody()); } @@ -1591,7 +1591,7 @@ class NoticeAjaxControllerLocalisationWithStartedCoteTest extends NoticeAjaxCon ->setCoteFin('999 Z') ->save(); - $this->dispatch('noticeajax/localisation/id_bib/1/cote_barres/123456', true); + $this->dispatch('noticeajax/localisation/id_bib/1/code_barres/123456', true); $this->_json = json_decode($this->_response->getBody()); } @@ -1624,7 +1624,7 @@ class NoticeAjaxControllerLocalisationWithEndCoteTest extends NoticeAjaxControl ->setCoteFin('999 Z') ->save(); - $this->dispatch('noticeajax/localisation/id_bib/1/cote_barres/123456', true); + $this->dispatch('noticeajax/localisation/id_bib/1/code_barres/123456', true); $this->_json = json_decode($this->_response->getBody()); } -- GitLab