Skip to content
Snippets Groups Projects
Commit facf93e2 authored by Laurent's avatar Laurent
Browse files

hotline #24664 article access rights

less test failures
parent 75e2fe17
Branches
Tags
4 merge requests!896Master,!850Master,!849Hotline master,!847Hotline#24664 article access rights
......@@ -67,7 +67,7 @@ class Admin_CmsController extends ZendAfi_Controller_Action {
$bibs = $this->_getBibs();
$ids = array_map(function($model) {return $model->getId();}, $bibs);
$search = $this->_getParam('title_search', '');
$id_bib = $this->_getParam('id_bib', $this->_bib->getId());
$id_bib = $this->_getParam('id_bib', '');
$id_cat = $this->_getParam('id_cat', 0);
$params = ($id_bib && in_array($id_bib, $ids)) || $id_cat || ($id_bib == '0') || ($search)
......
......@@ -88,7 +88,8 @@ class CmsControllerListModeAdminBibRootTest extends CmsControllerListModeTestCas
/** @test */
public function shouldDisplayRootCategory() {
$this->assertXPathContentContains('//td/a[contains(@href, "cms/index/id_cat/1")]',
'Root');
'Root',
$this->_response->getBody());
}
}
......
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