Skip to content
Snippets Groups Projects
Commit 039cae8b authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

hotline #72999 : fix RT

parent 5216dc81
Branches
Tags
4 merge requests!2660Master,!2586Master,!2585Hotline,!2572hotline #72999 fix library widget pagination links
Pipeline #3804 passed with stage
in 33 minutes and 42 seconds
......@@ -73,11 +73,10 @@ abstract class ZendAfi_View_Helper_Accueil_LibraryTestCase extends ViewHelperTes
'division' => 2,
'preferences' => $preferences];
$view = new ZendAfi_Controller_Action_Helper_View();
$view->setScriptPath('application/modules/opac/views/scripts');
$this->view->setScriptPath('application/modules/opac/views/scripts');
$this->_helper = new ZendAfi_View_Helper_Accueil_Library(2, $params);
$this->_helper->setView($view);
$this->_helper->setView($this->view);
$this->html = $this->_helper->getBoite();
}
......@@ -200,16 +199,18 @@ class ZendAfi_View_Helper_Accueil_LibraryAlphaOrderDisplayTest extends ZendAfi_V
class ZendAfi_View_Helper_Accueil_LibrarySelectionOrderDisplayTest extends ZendAfi_View_Helper_Accueil_LibraryTestCase {
class ZendAfi_View_Helper_Accueil_LibrarySelectionOrderDisplayTest
extends ZendAfi_View_Helper_Accueil_LibraryTestCase {
public function setUp() {
parent::setUp();
Storm_Test_ObjectWrapper::onLoaderOfModel('Class_Bib')
->whenCalled('findAllBy')
->with(['id_site' => ['4', '1', '2'],
'order' => 'FIELD (id_site, 4,1,2)'])
->answers([$this->meythet, $this->annecy, $this->cran])
->beStrict();
$this->onLoaderOfModel('Class_Bib')
->whenCalled('findAllBy')
->with(['id_site' => ['4', '1', '2'],
'order' => 'FIELD (id_site, 4,1,2)'])
->answers([$this->meythet, $this->annecy, $this->cran])
->beStrict();
$this->_generateLibrary(['titre' => 'Bibliotheques',
'libraries' => '4;1;2',
......@@ -286,7 +287,8 @@ class ZendAfi_View_Helper_Accueil_LibraryFieldsDisplayTest extends ZendAfi_View_
class ZendAfi_View_Helper_Accueil_LibraryCustomFieldsDisplayTest extends ZendAfi_View_Helper_Accueil_LibraryTestCase {
class ZendAfi_View_Helper_Accueil_LibraryCustomFieldsDisplayTest
extends ZendAfi_View_Helper_Accueil_LibraryTestCase {
public function setUp() {
parent::setUp();
......@@ -369,7 +371,9 @@ class ZendAfi_View_Helper_Accueil_LibraryCustomFieldsDisplayTest extends ZendAfi
class ZendAfi_View_Helper_Accueil_LibraryPaginatorTest extends ZendAfi_View_Helper_Accueil_LibraryTestCase {
class ZendAfi_View_Helper_Accueil_LibraryPaginatorTest
extends ZendAfi_View_Helper_Accueil_LibraryTestCase {
public function setUp() {
parent::setUp();
$this->_generateLibrary(['titre' => 'Bibliotheques',
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment