forked from Wavyzz/dolibarr
Fix phpunit
This commit is contained in:
@@ -167,6 +167,12 @@ function isModEnabled($module)
|
||||
{
|
||||
global $conf;
|
||||
|
||||
// Fix special cases
|
||||
$arrayconv = array('project' => 'projet');
|
||||
if (!empty($arrayconv[$module])) {
|
||||
$module = $arrayconv[$module];
|
||||
}
|
||||
|
||||
return !empty($conf->modules[$module]);
|
||||
//return !empty($conf->$module->enabled);
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@ class BuildDocTest extends PHPUnit\Framework\TestCase
|
||||
if (!isModEnabled('propal')) {
|
||||
print __METHOD__." propal module not enabled\n"; die(1);
|
||||
}
|
||||
if (!isModEnabled('project')) {
|
||||
if (!isModEnabled('projet')) {
|
||||
print __METHOD__." project module not enabled\n"; die(1);
|
||||
}
|
||||
if (!isModEnabled('expedition')) {
|
||||
|
||||
Reference in New Issue
Block a user