diff --git a/tests/php-unit-tests/src/BaseTestCase/ItopCustomDatamodelTestCase.php b/tests/php-unit-tests/src/BaseTestCase/ItopCustomDatamodelTestCase.php index 3f0c8ede6..84d4aac7e 100644 --- a/tests/php-unit-tests/src/BaseTestCase/ItopCustomDatamodelTestCase.php +++ b/tests/php-unit-tests/src/BaseTestCase/ItopCustomDatamodelTestCase.php @@ -189,6 +189,8 @@ abstract class ItopCustomDatamodelTestCase extends ItopDataTestCase } CMDBSource::CreateDB($oTestConfig->Get('db_name')); MetaModel::Startup($sConfFile, false /* $bModelOnly */, true /* $bAllowCache */, false /* $bTraceSourceFiles */, $sTestEnv); + // N°7446 For some reason we need to create the DB schema before starting the MM, then only we can create the tables. + MetaModel::DBCreate(); $this->MarkEnvironmentReady(); $this->debug('Preparation of custom environment "'.$sTestEnv.'" done.');