diff options
| author | André Noack <noack@data-quest.de> | 2022-10-19 08:23:48 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2022-10-19 08:23:48 +0000 |
| commit | 2f85abeb817dba2476294f23fcdff91140ed2e95 (patch) | |
| tree | 3fb401db711bec94f4aea0de7970f4f1251b120e /tests | |
| parent | a862c55cc83aa342058d0c310a7b426327c335ef (diff) | |
Resolve #1688 "Fatal Error im bootstrap mit PHP 8.1"
Closes #1688
Merge request studip/studip!1090
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/functional/_bootstrap.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/functional/_bootstrap.php b/tests/functional/_bootstrap.php index 4a71787..8feb13e 100644 --- a/tests/functional/_bootstrap.php +++ b/tests/functional/_bootstrap.php @@ -32,12 +32,16 @@ StudipAutoloader::addAutoloadPath($STUDIP_BASE_PATH . '/lib/plugins/db'); StudipAutoloader::addAutoloadPath($STUDIP_BASE_PATH . '/lib/plugins/engine'); // 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; +} require 'config/config.inc.php'; // Do not send mails of any kind during tests |
