Skip to content
Snippets Groups Projects
Commit efba73cd authored by Ghislain Loas's avatar Ghislain Loas
Browse files

dev #68179 add menu entry

parent 501faad9
Branches
Tags
3 merge requests!2582Dev#68179 contractuel connecteur storyplayr contactuel,!2577Dev#68184 contractuel http api moissonnage le kiosk,!2568Dev#68179 contractuel connecteur storyplayr contactuel
Pipeline #3760 passed with stage
in 49 minutes and 55 seconds
......@@ -34,6 +34,9 @@ class StoryPlayR_Config extends Class_DigitalResource_Config {
'Url' => 'https://www.storyplayr.com/',
'Icon' => 'https://www.storyplayr.com/images/v2/logo.png',
'MenuLabel' => $this->_('Lien vers StoryPlay*r'),
'ModuleMenu' => $this->withNameSpace('ModuleMenu'),
'NotAllowedMessage' => $this->_('Vous devez être abonné pour accéder à cette ressource.'),
];
}
......
<?php
/**
* Copyright (c) 2012-2017, Agence Française Informatique (AFI). All rights reserved.
*
* BOKEH is free software; you can redistribute it and/or modify
* it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
* the Free Software Foundation.
*
* There are special exceptions to the terms and conditions of the AGPL as it
* is applied to this software (see README file).
*
* BOKEH is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with BOKEH; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
class StoryPlayR_ModuleMenu extends Class_DigitalResource_ModuleMenu {}
\ No newline at end of file
......@@ -153,4 +153,14 @@ class StoryPlayRAuthValidateTest extends StoryPlayRActivatedTestCase {
'message' => 'Le jeton d\'accès est périmé']),
$this->_response->getBody());
}
}
class StoryPlayRModuleMenuTest extends StoryPlayRActivatedTestCase {
/** @test */
public function storyPlayRMenuShouldBeAvailable() {
$modules_menu = new Class_Systeme_ModulesMenu;
$this->assertEquals('Lien vers StoryPlay*r', $modules_menu->getFonction('StoryPlayR')->getLibelle());
}
}
\ No newline at end of file
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