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:
parent
23c4ae2469
commit
93bac9443d
|
@ -92,9 +92,9 @@ foreach ($modulePaths as $path) {
|
||||||
$loader->registerNamespace($moduleNamespace, $moduleLibraryPath);
|
$loader->registerNamespace($moduleNamespace, $moduleLibraryPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
$moduleTestPath = "$path/test/php";
|
$moduleTestPath = "$path/test/php/Lib";
|
||||||
if (is_dir($moduleTestPath)) {
|
if (is_dir($moduleTestPath)) {
|
||||||
$loader->registerNamespace('Tests\\' . $moduleNamespace, $moduleTestPath);
|
$loader->registerNamespace('Tests\\' . $moduleNamespace . '\\Lib', $moduleTestPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
$moduleFormPath = "$path/application/forms";
|
$moduleFormPath = "$path/application/forms";
|
||||||
|
|
Loading…
Reference in New Issue