From: Sarah Hoffmann Date: Thu, 17 Dec 2020 10:46:01 +0000 (+0100) Subject: adapt tests to new dotenv environment X-Git-Tag: v3.7.0~66^2~8 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/d97aed87411fad81eb93fd14a58bb22fdc16dd59 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. --- 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();