diff --git a/test/phpunit/ModulesTest.php b/test/phpunit/ModulesTest.php index 9e71bc15102..9bbfa47eed8 100644 --- a/test/phpunit/ModulesTest.php +++ b/test/phpunit/ModulesTest.php @@ -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'))) {