Skip to content
Snippets Groups Projects
Commit acc7cefc authored by pbarroca's avatar pbarroca
Browse files

OPDS: Ajout menu admin

parent 1812012d
No related merge requests found
......@@ -97,6 +97,7 @@ class ZendAfi_View_Helper_Admin_MenuGaucheAdmin extends ZendAfi_View_Helper_Base
$menu_systeme .= $this->addMenu("tester.gif", $this->translate()->_("Test des web-services"), "/admin/systeme/webservices", $acl_super_admin);
$menu_systeme .= $this->addMenu("images.png", $this->translate()->_("Cache des images"), "/admin/systeme/cacheimages", $acl_super_admin);
$menu_systeme .= $this->addMenu("website.gif", $this->translate()->_("Ressources OAI"), "/admin/systeme/ressourcesoai",$acl_admins_portail);
$menu_systeme .= $this->addMenu("epub.png", $this->translate()->_("Ressources OPDS"), "/admin/opds",$acl_admins_portail);
$menu_systeme .= $this->addMenu("chat.gif.png", $this->translate()->_("Import avis opac2"), "/admin/systeme/importavisopac2",$acl_super_admin);
$menu_systeme .= $this->closeBoite();
......
......@@ -131,6 +131,12 @@ class Admin_OpdsControllerAddActionTest extends Admin_OpdsControllerTestCase {
public function urlInputShouldBePresent() {
$this->assertXPath('//input[@name="url"]');
}
/** @test */
public function menuGaucheAdminShouldContainsLinkToOpds() {
$this->assertXPath('//div[@class="menuGaucheAdmin"]//a[contains(@href, "admin/opds")]');
}
}
......
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