Skip to content
Snippets Groups Projects
Commit 42a04061 authored by Ghislain Loas's avatar Ghislain Loas Committed by Laurent
Browse files

hackfest fix test failure

parent 4a434d69
Branches
Tags
3 merge requests!2080Sandbox detach zf from storm,!1940Dev#48981 3455 lier des cartes via bokeh,!1929Dev#48981 3455 lier des cartes via bokeh
......@@ -344,16 +344,22 @@ class CmsControllerListModeAdminBibSearchTest extends CmsControllerListModeTestC
'contenu' => 'Welcome',
'categorie' => Class_ArticleCategorie::find(23)]);
Storm_Test_ObjectWrapper::onLoaderOfModel('Class_Users')
->whenCalled('getIdentity')
->answers($this->_admin_bib)
->whenCalled('findAllBy')
->answers([]);
Storm_Test_ObjectWrapper::onLoaderOfModel('Class_Article')
->whenCalled('findAllBy')
->with(['where' => 'titre like \'%news%\'',
->with(['where' => '(titre like \'%news%\')',
'id_cat' => [1,23,34],
'order' => 'titre',
'limitPage' => [0, 25]])
->answers([Class_Article::find(1)])
->whenCalled('countBy')
->with(['where' => 'titre like \'%news%\'',
->with(['where' => '(titre like \'%news%\')',
'id_cat' => [1,23,34],
'order' => 'titre'])
->answers(2)
......
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