From 6ef9ebefae0918b94def05067230976dd1cbaccf Mon Sep 17 00:00:00 2001 From: Ghislain Loas <ghislo@sandbox.pergame.net> Date: Thu, 16 Jul 2015 15:06:41 +0200 Subject: [PATCH] hotline #26977 : replace ->baseUrl by this->view->url --- library/ZendAfi/View/Helper/Accueil/Critiques.php | 12 ++++++------ .../opac/controllers/ProfilOptionsControllerTest.php | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/library/ZendAfi/View/Helper/Accueil/Critiques.php b/library/ZendAfi/View/Helper/Accueil/Critiques.php index 69111172cca..b227d99c8bf 100644 --- a/library/ZendAfi/View/Helper/Accueil/Critiques.php +++ b/library/ZendAfi/View/Helper/Accueil/Critiques.php @@ -93,12 +93,12 @@ class ZendAfi_View_Helper_Accueil_Critiques extends ZendAfi_View_Helper_Accueil_ protected function _getTitle() { return $this->view - ->getHelper('tagAnchor') - ->baseURL($this->preferences['titre'], - 'blog', - 'viewcritiques', - ['id_module' => $this->id_module, - 'id_menu' => $this->_id_menu]); + ->tagAnchor( + $this->view->url(['controller' => 'blog', + 'action' => 'viewcritiques', + 'id_module'=> $this->id_module, + 'id_menu' => $this->_id_menu]), + $this->preferences['titre']); } diff --git a/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php b/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php index bfea46cd42b..2e9bd2d95d8 100644 --- a/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php +++ b/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php @@ -631,7 +631,7 @@ class ProfilOptionsControllerViewProfilAdulteTest extends ProfilOptionsControlle /** @test */ public function menuHorizontalBoiteCritiquesShouldContainsIdMenuInTitleLink() { - $this->assertXPathContentContains('//div[@id="menu_horizontal"]//div[@class="boite critiques"]//a[contains(@href, "blog/viewcritiques?id_module=2&id_menu=H")]', + $this->assertXPathContentContains('//div[@id="menu_horizontal"]//div[@class="boite critiques"]//a[contains(@href, "/blog/viewcritiques/id_module/2/id_menu/H")]', 'Coup de coeur'); } -- GitLab