From 1dbaac0ace36087a25718be85160f6e269bfeb9f Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Tue, 19 Sep 2023 11:58:42 +0000 Subject: [PATCH] fixes #3202 Closes #3202 Merge request studip/studip!2168 --- tests/unit/_bootstrap.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/unit/_bootstrap.php b/tests/unit/_bootstrap.php index 7332094bb55..221611134b3 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 -- GitLab