From 5967d8c0eb52cfe22bd4b1670ac0e02797fc7359 Mon Sep 17 00:00:00 2001 From: efalcy <efalcy@afi-sa.fr> Date: Fri, 31 Oct 2014 10:39:43 +0100 Subject: [PATCH] dev #16803 : change link to /formations instead of /abonne/formations --- library/Class/Systeme/ModulesMenu/AbonneFormations.php | 6 +++--- .../opac/controllers/ProfilOptionsControllerTest.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/library/Class/Systeme/ModulesMenu/AbonneFormations.php b/library/Class/Systeme/ModulesMenu/AbonneFormations.php index be0f8e311b2..abb3348b1b8 100644 --- a/library/Class/Systeme/ModulesMenu/AbonneFormations.php +++ b/library/Class/Systeme/ModulesMenu/AbonneFormations.php @@ -16,7 +16,7 @@ * * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE * along with AFI-OPAC 2.0; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ class Class_Systeme_ModulesMenu_AbonneFormations extends Class_Systeme_ModulesMenu_Null { /** @var string */ @@ -29,8 +29,8 @@ class Class_Systeme_ModulesMenu_AbonneFormations extends Class_Systeme_ModulesMe protected $_libelle = 'Formations'; /** @var string */ - protected $_url = ['controller' => 'abonne', - 'action' => 'formations']; + protected $_url = ['controller' => 'formations', + 'action' => 'index']; public function isVisibleForProfil($profil) { diff --git a/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php b/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php index 300650a3535..4335a38deda 100644 --- a/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php +++ b/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php @@ -535,7 +535,7 @@ class ProfilOptionsControllerViewProfilAdulteTest extends ProfilOptionsControlle /** @test */ public function menuHorizontalShouldIncludeLinkToFormations() { - $this->assertXPathContentContains("//div[@id='menu_horizontal']//li//a[contains(@href, '/abonne/formations')]", + $this->assertXPathContentContains("//div[@id='menu_horizontal']//li//a[contains(@href, '/formations')]", 'Formations',$this->_response->getBody()); } -- GitLab