mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 06:14:25 +02:00
Test: Load a module's composer autoloader
This commit is contained in:
parent
3c3437dafa
commit
c027282d8c
@ -118,6 +118,11 @@ class Test extends Cli
|
|||||||
if (is_dir($moduleTestPath)) {
|
if (is_dir($moduleTestPath)) {
|
||||||
$this->getLoader()->registerNamespace('Tests\\' . $moduleNamespace . '\\Lib', $moduleTestPath);
|
$this->getLoader()->registerNamespace('Tests\\' . $moduleNamespace . '\\Lib', $moduleTestPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$composerAutoloader = "$path/vendor/autoload.php";
|
||||||
|
if (file_exists($composerAutoloader)) {
|
||||||
|
require_once $composerAutoloader;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user