diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-09-19 11:58:42 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-09-19 11:58:42 +0000 |
| commit | 1dbaac0ace36087a25718be85160f6e269bfeb9f (patch) | |
| tree | 752555b16d9ebef514d4ee9fdd262d2d62e7971e /tests/unit | |
| parent | 2330d5f39426b2078c8be612034e2ae020b38ba8 (diff) | |
fixes #3202
Closes #3202
Merge request studip/studip!2168
Diffstat (limited to 'tests/unit')
| -rw-r--r-- | tests/unit/_bootstrap.php | 7 |
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 |
