Test: Load a module's composer autoloader

This commit is contained in:
Johannes Meyer 2023-08-31 10:13:35 +02:00
parent 3c3437dafa
commit c027282d8c
1 changed files with 5 additions and 0 deletions

View File

@ -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;