mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 11:19:16 +02:00
test/bootstrap: no more symlinking...
...as we can load the module anyways fixes #13589
This commit is contained in:
parent
36e79b97cd
commit
df71b40548
@ -25,11 +25,6 @@ call_user_func(function() {
|
|||||||
$base = dirname($testbase);
|
$base = dirname($testbase);
|
||||||
|
|
||||||
require_once 'Icinga/Application/Cli.php';
|
require_once 'Icinga/Application/Cli.php';
|
||||||
require_once $base . '/library/Director/Test/BaseTestCase.php';
|
|
||||||
|
|
||||||
if (! file_exists($testbase . '/modules/director')) {
|
|
||||||
symlink($base, $testbase . '/modules/director');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (array_key_exists('ICINGAWEB_CONFIGDIR', $_SERVER)) {
|
if (array_key_exists('ICINGAWEB_CONFIGDIR', $_SERVER)) {
|
||||||
$configDir = $_SERVER['ICINGAWEB_CONFIGDIR'];
|
$configDir = $_SERVER['ICINGAWEB_CONFIGDIR'];
|
||||||
@ -39,5 +34,5 @@ call_user_func(function() {
|
|||||||
|
|
||||||
Cli::start($testbase, $configDir)
|
Cli::start($testbase, $configDir)
|
||||||
->getModuleManager()
|
->getModuleManager()
|
||||||
->loadModule('director');
|
->loadModule('director', $base);
|
||||||
});
|
});
|
||||||
|
2
test/modules/.gitignore
vendored
2
test/modules/.gitignore
vendored
@ -1,2 +0,0 @@
|
|||||||
*
|
|
||||||
!.gitignore
|
|
Loading…
x
Reference in New Issue
Block a user