Skip to content
Snippets Groups Projects
Commit 862f4450 authored by llaffont's avatar llaffont
Browse files

Correction tests CVS Jenkins

parent bd2d85f1
Branches
Tags
No related merge requests found
......@@ -36,6 +36,12 @@ class ModulesMenuTest extends Storm_Test_ModelTestCase {
Class_AdminVar::newInstanceWithId('NUMILOG_URL',['valeur' => 'http://numilogurl/action']);
$this->module_menu = new Class_Systeme_ModulesMenu();
$http_client = Storm_Test_ObjectWrapper::mock();
Class_CVSLink::setDefaultHttpClient($http_client);
$http_client
->whenCalled('postData')
->answers('');
}
......@@ -116,10 +122,8 @@ class ModulesMenuTest extends Storm_Test_ModelTestCase {
}
/** @test */
/** @test */
public function cvsUrlWithUserNotValidShouldReturnJsAlert() {
$this->_logUserGaston()
->beAbonneSIGB()
......@@ -143,7 +147,6 @@ class ModulesMenuTest extends Storm_Test_ModelTestCase {
}
/** @test */
public function numilogUrlWithAbonnementInvalidShouldReturnDefaultNumilogUrl() {
$this->_logUserGaston();
......@@ -154,9 +157,6 @@ class ModulesMenuTest extends Storm_Test_ModelTestCase {
}
/** @test */
public function reserverPosteUrlShouldBeAbonneReservations() {
$this->assertEquals(['url' => BASE_URL.'/abonne/multimedia-hold-location', 'target' => ''],
......
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