diff --git a/tests/library/ZendAfi/View/Helper/Admin/AdminHelpLinkTest.php b/tests/library/ZendAfi/View/Helper/Admin/AdminHelpLinkTest.php index 5210ce198a52f4cee0758967bd12e68c80f93d86..9c4a26432cdbcbc63f1c143da78fbfa94e55e957 100644 --- a/tests/library/ZendAfi/View/Helper/Admin/AdminHelpLinkTest.php +++ b/tests/library/ZendAfi/View/Helper/Admin/AdminHelpLinkTest.php @@ -40,7 +40,16 @@ class AdminHelpLinkHelperTest extends ViewHelperTestCase { protected function assertHelpLink($help_id) { $html = $this->helper->helpLink(); $this->assertXPath($html, - "//a[@href='https://akm.ardans.fr/AFI2/invite/listerFiche.do?idFiche=$help_id']"); + "//a[@href='https://akm.ardans.fr/AFI2/invite/listerFiche.do?idFiche=$help_id']", + $html); + } + + + protected function assertWikiLink($page) { + $html = $this->helper->helpLink(); + $path = sprintf('//a[@href="http://wiki.bokeh-library-portal.org/index.php/%s"]', + $page); + $this->assertXPath($html, $path, $html); } @@ -54,28 +63,28 @@ class AdminHelpLinkHelperTest extends ViewHelperTestCase { /** @test */ public function helpForProfilMenusIndexShouldReturnFiche3618() { $this->setControllerAction('profil', 'menusindex'); - $this->assertHelpLink(3618); + $this->assertWikiLink('Configurer_un_menu'); } /** @test */ public function helpForProfilIndexShouldReturnFiche3612() { $this->setControllerAction('profil', 'index'); - $this->assertHelpLink(3612); + $this->assertWikiLink('Configurer_un_profil'); } /** @test */ public function helpForProfilIndexUpperCaseShouldReturnFiche3612() { $this->setControllerAction('ProFil', 'inDex'); - $this->assertHelpLink(3612); + $this->assertWikiLink('Configurer_un_profil'); } /** @test */ public function helpForProfilZorkShouldReturnFiche3612() { $this->setControllerAction('profil', 'zork'); - $this->assertHelpLink(3612); + $this->assertWikiLink('Configurer_un_profil'); } /** @test */ @@ -88,14 +97,14 @@ class AdminHelpLinkHelperTest extends ViewHelperTestCase { /** @test */ public function helpForCatalogueShouldReturnFiche3613() { $this->setControllerAction('catalogue'); - $this->assertHelpLink(3613); + $this->assertWikiLink('Gestions_des_domaines'); } /** @test */ public function helpForCatalogueEditShouldReturnFiche3613() { $this->setControllerAction('catalogue', 'edit'); - $this->assertHelpLink(3613); + $this->assertWikiLink('Gestions_des_domaines'); }