N°3556: fix broken ci temporarly for test using ItopDataTestCase

This commit is contained in:
odain
2021-10-28 11:48:14 +02:00
parent 6d2b75df9e
commit e03eb1e279
2 changed files with 8 additions and 1 deletions

View File

@@ -17,7 +17,9 @@
* You should have received a copy of the GNU Affero General Public License
*/
define('ITOP_DESIGN_LATEST_VERSION', '3.0');
if (! defined('ITOP_DESIGN_LATEST_VERSION')){
define('ITOP_DESIGN_LATEST_VERSION', '3.0');
}
/**
* Utility to upgrade the format of a given XML datamodel to the latest version

View File

@@ -79,6 +79,11 @@ class ItopDataTestCase extends ItopTestCase
$sEnv = 'production';
$sConfigFile = APPCONF.$sEnv.'/'.ITOP_CONFIG_FILE;
if (! defined('ITOP_DESIGN_LATEST_VERSION')){
define('ITOP_DESIGN_LATEST_VERSION', '3.0');
}
MetaModel::Startup($sConfigFile, false /* $bModelOnly */, true /* $bAllowCache */, false /* $bTraceSourceFiles */, $sEnv);
if (static::USE_TRANSACTION)