Skip to content
Snippets Groups Projects
Commit 580907ba authored by Ghislain Loas's avatar Ghislain Loas
Browse files

dev #60900 fix tests failures + add menu admin in other opac controllers

parent 5fef2318
Branches
Tags
3 merge requests!2334Master,!2177Dev#60900 ajouter un menu admin en front pour regrouper les actions outils de l adminstrateur,!2173Dev#60900 ajouter un menu admin en front pour regrouper les actions outils de l adminstrateur
Pipeline #1612 passed with stage
in 11 minutes and 12 seconds
<?php
ob_start();
echo '<body '.$this->bodyParam.'>';
echo $this->Admin_FrontNav();
echo $this->partial('contenu.phtml',
['profil' => $this->profil,
'actionContent' => $this->fonctionsAdmin() . $this->render($this->actionScript)]);
......
......@@ -220,7 +220,7 @@ class ZendAfi_View_Helper_Admin_FrontNav extends ZendAfi_View_Helper_BaseHelper
$this->view->tagImg(Class_Admin_Skin::current()
->getIconUrl('icons',
'home'),
['style' => 'height: 18px;']),
['style' => 'height: 18px;filter: invert(1);']),
['title' => $this->_('Accéder à l\'interface d\'administration')]),
$this->view->tagAnchor($this->view->url(['module' => 'admin',
......@@ -236,8 +236,7 @@ class ZendAfi_View_Helper_Admin_FrontNav extends ZendAfi_View_Helper_BaseHelper
['style' => 'height: 18px;']),
['title' => $this->_('Accéder à l\'interface d\'administration pour paramétrer cette page')])];
return $this->_tag('ul',
$this->_tag('h3', $this->_('Accéder à l\'administration')) .
implode($this->_lify($links)));
return $this->_tag('h3', $this->_('Accéder à l\'administration')) .
$this->_tag('ul', implode($this->_lify($links)));
}
}
\ No newline at end of file
......@@ -556,4 +556,18 @@ class FormulaireContactActionWithBibSelectorSettingNotValidPostTest
$this->assertXPathContentContains('//ul[@class="errors"]/li', 'Veuillez sélectionner une bibliothèque');
}
}
?>
\ No newline at end of file
class FormulaireContactAsAdminTest extends Admin_AbstractControllerTestCase {
public function setUp() {
parent::setUp();
$this->dispatch('/opac/index/formulairecontact', true);
}
/** @test */
public function menuAdminFrontShouldBeVisible() {
$this->assertXPath('//body/div[@class="menu_admin_front hidden"]');
}
}
\ No newline at end of file
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