diff --git a/tests/php-unit-tests/src/BaseTestCase/ItopCustomDatamodelTestCase.php b/tests/php-unit-tests/src/BaseTestCase/ItopCustomDatamodelTestCase.php index 934b751874..7034cb5b5a 100644 --- a/tests/php-unit-tests/src/BaseTestCase/ItopCustomDatamodelTestCase.php +++ b/tests/php-unit-tests/src/BaseTestCase/ItopCustomDatamodelTestCase.php @@ -88,7 +88,7 @@ abstract class ItopCustomDatamodelTestCase extends ItopDataTestCase */ protected function GetSourceEnvironment(): string { - return ITOP_DEFAULT_ENV; + return 'production'; } /** diff --git a/tests/php-unit-tests/src/BaseTestCase/ItopDataTestCase.php b/tests/php-unit-tests/src/BaseTestCase/ItopDataTestCase.php index cc5769d2ba..74d7d6d1fb 100644 --- a/tests/php-unit-tests/src/BaseTestCase/ItopDataTestCase.php +++ b/tests/php-unit-tests/src/BaseTestCase/ItopDataTestCase.php @@ -86,7 +86,7 @@ abstract class ItopDataTestCase extends ItopTestCase /** * @var string Default environment to use for test cases */ - public const DEFAULT_TEST_ENVIRONMENT = ITOP_DEFAULT_ENV; + public const DEFAULT_TEST_ENVIRONMENT = 'production'; public const USE_TRANSACTION = true; public const CREATE_TEST_ORG = false; diff --git a/tests/php-unit-tests/unitary-tests/core/CMDBSource/TransactionsTest.php b/tests/php-unit-tests/unitary-tests/core/CMDBSource/TransactionsTest.php index a7f1e15a70..0153b8d235 100644 --- a/tests/php-unit-tests/unitary-tests/core/CMDBSource/TransactionsTest.php +++ b/tests/php-unit-tests/unitary-tests/core/CMDBSource/TransactionsTest.php @@ -31,7 +31,7 @@ class TransactionsTest extends ItopTestCase parent::setUp(); require_once('DeadLockInjection.php'); $this->RequireOnceItopFile('/core/cmdbsource.class.inc.php'); - $sEnv = ITOP_DEFAULT_ENV; + $sEnv = 'production'; $sConfigFile = APPCONF.$sEnv.'/config-itop.php'; MetaModel::Startup($sConfigFile, false, true, false, $sEnv);