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

Merge branch 'hotline#133092_retour_au_site_avec_url_personnalisee' into 'hotline'

hotline #133092 Administration : back to site link use current profil

See merge request !4168
parents a217c6fc f54d54a7
Branches
Tags
3 merge requests!4174hotline #133092 Administration : back to site link use current profil,!4173hotline #133092 Administration : back to site link use current profil,!4168hotline #133092 Administration : back to site link use current profil
Pipeline #14438 passed with stage
in 50 minutes and 50 seconds
- ticket #133092 : Administration : le lien "retour au site" utilise l'URL personnalisée du profil courant
\ No newline at end of file
......@@ -50,7 +50,7 @@ class ZendAfi_View_Helper_Admin_Nav extends ZendAfi_View_Helper_BaseHelper {
['icon' => 'back_to_front',
'label' => $this->_('Retour au site'),
'title' => $this->_('Retourner sur la partie publique du portail'),
'url' => $this->view->url(['id_profil' => Class_Profil::getCurrentProfil()->getId()], null, true)],
'url' => Class_Profil::getCurrentProfil()->getUrl()],
['icon' => 'identity',
'label' => $identity->getLogin() . ' (' . $identity->getLibelleRole() . ')',
......
......@@ -126,6 +126,12 @@ class Admin_IndexControllerTest extends Admin_IndexControllerTestCase {
Class_BokehVersion::setWebClient($mock_http);
$this->fixture(Class_Profil::class,
['id' => 4,
'libelle' => 'ludotek',
'rewrite_url' => 'ludotek'])
->beCurrentProfil();
$this->dispatch('/admin/index/index', true);
}
......@@ -173,6 +179,12 @@ class Admin_IndexControllerTest extends Admin_IndexControllerTestCase {
}
/** @test */
public function menuBackToSiteLinkShouldBeSlashLudotek() {
$this->assertXPathContentContains('//div[@class="menu barre_nav"]//a[text()="Retour au site"]/@href', '/ludotek');
}
/** @test */
public function linkToGoogleGroupShouldBePresent() {
$this->assertXPathContentContains('//a[contains(@href, "utilisateurs-bokeh")]', 'Google group Bokeh');
......
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