From d97aed87411fad81eb93fd14a58bb22fdc16dd59 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Thu, 17 Dec 2020 11:46:01 +0100 Subject: [PATCH] adapt tests to new dotenv environment DB tests now can simply set the environment to change configuration variables. API tests still rely on a configuration file. Also, query.php needs to set up the CONST_* variables to work with the query scripts. That is a tiny bit messy and duplicates code but this part will need to be reworked later. --- lib/setup/SetupClass.php | 2 ++ test/bdd/environment.py | 33 ++++++++++++++++++++++----------- test/bdd/steps/queries.py | 1 + utils/query.php | 15 +++++++++++++++ 4 files changed, 40 insertions(+), 11 deletions(-) diff --git a/lib/setup/SetupClass.php b/lib/setup/SetupClass.php index 850ff297..99cda584 100755 --- a/lib/setup/SetupClass.php +++ b/lib/setup/SetupClass.php @@ -715,6 +715,8 @@ class SetupFunctions $rOutputFile = fopen(CONST_InstallDir.'/settings/settings-frontend.php', 'w'); fwrite($rOutputFile, "connect(); -- 2.45.2