Fix ThemeHandlerTest for file imports in a module

This commit is contained in:
Molkobain
2021-12-20 15:56:58 +01:00
parent dc81630b16
commit 5f382ee053

View File

@@ -69,8 +69,9 @@ class ThemeHandlerTest extends ItopTestCase
$aErrors = [];
$aDataModelFiles=glob(APPROOT . utils::GetConfig()->Get('source_dir'). "/**/datamodel*.xml");
$aImportsPaths = [
APPROOT.'datamodels',
$this->sTmpDir, // For DM rules
APPROOT.'datamodels', // Simulate env-xxx when looking for files outside env-xxx
APPROOT.'datamodels/2.x', // Simulate env-xxx when looking for files within env-xxx
$this->sTmpDir, // For DM rules
];
// First we have to compile the styles defined in the DM in order to feed it to the themes