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

dev #15356 add link to custom fields report

parent 478425d3
Branches
Tags
2 merge requests!321Dev#12992 custom fields,!313Dev#12992 custom fields
......@@ -257,6 +257,10 @@ class ZendAfi_View_Helper_Admin_MenuGaucheAdmin extends ZendAfi_View_Helper_Base
$this->translate()->_('Champs personnalisés'),
'/admin/custom-fields',
$this->filterAdminPortail($this->user))
.$this->addMenu('stats_palmares_16.png',
$this->translate()->_('Rapports statistiques'),
'/admin/custom-fields-report',
$this->filterAdminPortail($this->user))
.$this->closeBoite();
}
......
......@@ -136,8 +136,14 @@ class AdminIndexControllerIndexActionTest extends AdminIndexControllerTestCase {
/** @test */
public function menuCgaucheShouldContainsCustomFields() {
$this->assertXPathContentContains('//li//a','Champs personnalisés',$this->_response->getBody());
public function menuGaucheShouldContainsCustomFields() {
$this->assertXPathContentContains('//li//a','Champs personnalisés');
}
/** @test */
public function menuGaucheShouldContainsCustomFieldReport() {
$this->assertXPathContentContains('//li//a','Rapports statistiques');
}
}
......
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