aboutsummaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2023-09-19 11:58:42 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2023-09-19 11:58:42 +0000
commit1dbaac0ace36087a25718be85160f6e269bfeb9f (patch)
tree752555b16d9ebef514d4ee9fdd262d2d62e7971e /tests/unit
parent2330d5f39426b2078c8be612034e2ae020b38ba8 (diff)
fixes #3202
Closes #3202 Merge request studip/studip!2168
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/_bootstrap.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/unit/_bootstrap.php b/tests/unit/_bootstrap.php
index 7332094..2216111 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