diff --git a/tests/unit/_bootstrap.php b/tests/unit/_bootstrap.php index 7332094bb5532209bf26b86170de485f6e6e22b2..221611134b3302987dfd2f72b5e9831a5d0c75c6 100644 --- a/tests/unit/_bootstrap.php +++ b/tests/unit/_bootstrap.php @@ -74,13 +74,18 @@ StudipAutoloader::addClassLookup( ); // load config-variables +$added_configs = []; StudipFileloader::load( 'config_defaults.inc.php config_local.inc.php', - $GLOBALS, + $added_configs, compact('STUDIP_BASE_PATH', 'ABSOLUTE_URI_STUDIP', 'ASSETS_URL', 'CANONICAL_RELATIVE_PATH_STUDIP'), true ); +foreach ($added_configs as $key => $value) { + $GLOBALS[$key] = $value; +} + $config = Symfony\Component\Yaml\Yaml::parseFile(__DIR__ .'/../unit.suite.yml'); // connect to database if configured