diff --git a/library/Class/Systeme/ModulesMenu/AbonneFormations.php b/library/Class/Systeme/ModulesMenu/AbonneFormations.php index be0f8e311b23da7fdee96d5876fd75ee71850112..abb3348b1b87de7d419d7dfa08f447ecfebc4dc2 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 300650a3535babfee72b9f29e55f1cfa008e9ec5..4335a38deda84c91ec542bf30f226c9cdcf03e5f 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()); }