mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 00:04:04 +02:00
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);
|
||||
}
|
||||
|
||||
$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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user