test: Expect internal test dependencys in `php/Lib`

Loading internal test dependencies did previously only work
if placed directly inside `php`. No module does this at this
time.
This commit is contained in:
Johannes Meyer 2023-01-18 12:03:54 +01:00
parent 23c4ae2469
commit 93bac9443d
1 changed files with 2 additions and 2 deletions

View File

@ -92,9 +92,9 @@ foreach ($modulePaths as $path) {
$loader->registerNamespace($moduleNamespace, $moduleLibraryPath);
}
$moduleTestPath = "$path/test/php";
$moduleTestPath = "$path/test/php/Lib";
if (is_dir($moduleTestPath)) {
$loader->registerNamespace('Tests\\' . $moduleNamespace, $moduleTestPath);
$loader->registerNamespace('Tests\\' . $moduleNamespace . '\\Lib', $moduleTestPath);
}
$moduleFormPath = "$path/application/forms";