N°5608 - Use new ItopTestCase::RequireOnceXXX in unit tests

This commit is contained in:
Molkobain
2023-01-06 18:22:52 +01:00
parent 6a7dbb06b0
commit 36f8e58e25
33 changed files with 57 additions and 57 deletions

View File

@@ -42,9 +42,9 @@ class dictTest extends ItopTestCase
protected function setUp(): void
{
parent::setUp();
require_once(APPROOT.'core'.DIRECTORY_SEPARATOR.'coreexception.class.inc.php');
require_once(APPROOT.'core'.DIRECTORY_SEPARATOR.'dict.class.inc.php');
require_once(APPROOT.'core'.DIRECTORY_SEPARATOR.'apc-service.class.inc.php');
$this->RequireOnceItopFile('core'.DIRECTORY_SEPARATOR.'coreexception.class.inc.php');
$this->RequireOnceItopFile('core'.DIRECTORY_SEPARATOR.'dict.class.inc.php');
$this->RequireOnceItopFile('core'.DIRECTORY_SEPARATOR.'apc-service.class.inc.php');
$this->sEnvName = time();
$sDictionaryFolder = APPROOT."env-$this->sEnvName".DIRECTORY_SEPARATOR."dictionaries";
@mkdir($sDictionaryFolder, 0777, true);