test: Support `ICINGAWEB_CONFIGDIR` during bootstrapping

This commit is contained in:
Johannes Meyer 2023-08-09 13:35:04 +02:00
parent 4ccebb78b5
commit f61d278110
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ namespace Icinga\Test {
$basePath = getenv('ICINGAWEB_BASEDIR') ?: realpath(dirname(__FILE__) . '/../..');
$libraryPath = getenv('ICINGAWEB_ICINGA_LIB') ?: ($basePath . '/library/Icinga');
$configPath = $basePath . '/test/config';
$configPath = getenv('ICINGAWEB_CONFIGDIR') ?: $basePath . '/test/config';
require $libraryPath . '/Application/Test.php';
Test::start($basePath, $configPath);