Skip to content
Snippets Groups Projects
Commit 9d29f5ea authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

rel #19190 : fix tests failures

parent 75be908f
Branches
Tags
4 merge requests!715Master,!628Master,!626Master,!601Dev#19190 help links 3613 3612 3618
......@@ -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');
}
......
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