2
0
forked from Wavyzz/dolibarr

Fix phpunit

This commit is contained in:
Laurent Destailleur
2023-04-15 12:13:24 +02:00
parent 726657fd4c
commit 4e3dcbab29
2 changed files with 7 additions and 1 deletions

View File

@@ -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);
}

View File

@@ -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')) {