Skip to content
Snippets Groups Projects
Commit 78ed391d authored by llaffont's avatar llaffont
Browse files

Horizontal menu, hold computer: remove BASE_URL

parent ae4d2638
Branches
Tags
2 merge requests!258Dev/13872 Orphee Allow Hold Available Items,!6Refacto Menu Horizontal
......@@ -30,7 +30,8 @@ class Class_Systeme_ModulesMenu_ReserverPoste extends Class_Systeme_ModulesMenu_
protected $_libelle = 'Réserver un poste multimédia';
/** @var string */
protected $_url = '/abonne/multimedia-hold-location';
protected $_url = ['controller' => 'abonne',
'action' => 'multimedia-hold-location'];
public function isVisibleForProfil($profil) {
......
......@@ -231,8 +231,8 @@ class ModulesMenuTest extends Storm_Test_ModelTestCase {
/** @test */
public function reserverPosteUrlShouldBeAbonneReservations() {
$this->assertEquals(['url' => BASE_URL.'/abonne/multimedia-hold-location', 'target' => ''],
$this->module_menu->getUrl('RESERVER_POSTE', []));
$this->assertContains('/abonne/multimedia-hold-location',
$this->module_menu->getUrl('RESERVER_POSTE', [])['url']);
}
/** @test */
......
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