Skip to content
Snippets Groups Projects
Commit 80646593 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix phpunit

parent 64d8b97a
No related branches found
No related tags found
No related merge requests found
...@@ -157,6 +157,12 @@ class AdminLibTest extends PHPUnit_Framework_TestCase ...@@ -157,6 +157,12 @@ class AdminLibTest extends PHPUnit_Framework_TestCase
$moduledescriptor=new modExpenseReport($db); $moduledescriptor=new modExpenseReport($db);
$moduledescriptor->init(); $moduledescriptor->init();
$conf->setValues($db); $conf->setValues($db);
require_once dirname(__FILE__).'/../../htdocs/core/modules/modApi.class.php';
print "Enable module modAPI";
$moduledescriptor=new modApi($db);
$moduledescriptor->init();
$conf->setValues($db);
} }
} }
...@@ -129,7 +129,7 @@ class LangTest extends PHPUnit_Framework_TestCase ...@@ -129,7 +129,7 @@ class LangTest extends PHPUnit_Framework_TestCase
} }
/** /**
* testBank * testLang
* *
* @return string * @return string
*/ */
......
...@@ -71,6 +71,8 @@ class RestAPIUserTest extends PHPUnit_Framework_TestCase ...@@ -71,6 +71,8 @@ class RestAPIUserTest extends PHPUnit_Framework_TestCase
$this->savlangs=$langs; $this->savlangs=$langs;
$this->savdb=$db; $this->savdb=$db;
if (empty($conf->api->enabled)) { print __METHOD__." module api must be enabled.\n"; die(); }
print __METHOD__." db->type=".$db->type." user->id=".$user->id; print __METHOD__." db->type=".$db->type." user->id=".$user->id;
//print " - db ".$db->db; //print " - db ".$db->db;
print "\n"; print "\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment