From 604b01e803dca6a52dddc62294ceca8461edb477 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 6 Nov 2023 00:56:44 +0100 Subject: [PATCH] Show error message --- test/phpunit/ModulesTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'))) {