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

Merge branch 'dev#19190_help_links_3613_3612_3618' into 'master'

Dev#19190 help links 3613 3612 3618

Help link from Ardans to Mediawiki

    Ardans pages: 3613 3612 3618
    Moved to wiki pages on wiki.bokeh-library-portal.or

    Bokeh pages improved:
    - /admin/catalogue
    - /admin/profil
    - /admin/profil/menusindex/id_profil/13

See merge request !601
parents cc33ac91 5ec92e55
Branches
Tags
3 merge requests!715Master,!628Master,!626Master
......@@ -98,12 +98,8 @@ class ZendAfi_View_Helper_Admin_HelpLinkArdans
protected $_pattern = 'https://akm.ardans.fr/AFI2/invite/listerFiche.do?idFiche=%s';
protected $_mapping =
['profil' => [ 'index' => 3612,
'menusindex' => 3618,
'accueil' => 3614,
'proprietes' => 3894],
'catalogue' => [ 'index' => 3613 ],
['profil' => ['accueil' => 3614,
'proprietes' => 3894],
'formation' => [ 'index' => 4477 ],
......@@ -135,7 +131,14 @@ class ZendAfi_View_Helper_Admin_HelpLinkBokehWiki
protected $_pattern = 'http://wiki.bokeh-library-portal.org/index.php/%s';
protected $_mapping =
['modules' => ['recherche_viewnotice' => 'Affichage_d%27une_notice']];
[
'modules' => ['recherche_viewnotice' => 'Affichage_d%27une_notice'],
'catalogue' => ['index' => 'Gestions_des_domaines'],
'profil' => [
'index' => 'Configurer_un_profil',
'menusindex' => 'Configurer_un_menu',
]
];
}
?>
\ No newline at end of file
?>
......@@ -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