Fix phpunit
This commit is contained in:
parent
64d8b97afe
commit
8064659398
@ -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
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* testBank
|
* testLang
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -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";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user