Show error message

This commit is contained in:
Laurent Destailleur
2023-11-06 00:56:44 +01:00
parent 98f92b1bbc
commit 604b01e803

View File

@@ -152,9 +152,11 @@ class ModulesTest extends PHPUnit\Framework\TestCase
require_once DOL_DOCUMENT_ROOT.'/core/modules/mod'.$modlabel.'.class.php';
$class='mod'.$modlabel;
$mod=new $class($db);
$result=$mod->remove();
$result=$mod->init();
$this->assertLessThan($result, 0, $modlabel);
$this->assertLessThan($result, 0, $modlabel." ".$mod->error);
print __METHOD__." test remove/init for module ".$modlabel.", result=".$result."\n";
if (in_array($modlabel, array('Ldap', 'MailmanSpip'))) {