Skip to content
Snippets Groups Projects
Commit ffda1b23 authored by efalcy's avatar efalcy
Browse files

hotline #61301 : fix tests

parent 3f23c774
Branches
Tags
4 merge requests!2334Master,!2260Master,!2259Hotline master,!2252Hotline#61301 probleme d acces au kiosk
Pipeline #2113 passed with stage
in 19 minutes and 1 second
......@@ -22,7 +22,7 @@ require_once 'TelephoneAbstractControllerTestCase.php';
class ModulesControllerTest extends TelephoneAbstractControllerTestCase {
protected $_storm_default_to_volatile = true;
public function setUp() {
parent::setUp();
......@@ -81,7 +81,7 @@ class ModulesControllerTest extends TelephoneAbstractControllerTestCase {
->touch('/public/opac/skins/vide/css/mobile.css'));
Class_Profil::setFileWriter(Storm_Test_ObjectWrapper::mock()->whenCalled('fileExists')->answers(true));
Class_AdminVar::set('LEKIOSK_SSO_MODE', '');
RessourcesNumeriquesFixtures::activateLeKiosk();
$group = $this->fixture('Class_UserGroup', ['id' => 1])
->addRight(Class_UserGroup::RIGHT_ACCES_LEKIOSK);
......@@ -98,7 +98,8 @@ class ModulesControllerTest extends TelephoneAbstractControllerTestCase {
/** @test */
public function shouldHaveAccessToLekiosk() {
$this->assertContains('https://apipros.lekiosk.com/login/cas',
$this->assertContains('https://pros.lekiosk.com/login/accesshash',
$this->_response->getBody());
}
}
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