diff options
author | William Desportes <williamdes@wdes.fr> | 2020-05-21 14:35:25 +0300 |
---|---|---|
committer | William Desportes <williamdes@wdes.fr> | 2020-05-21 14:35:36 +0300 |
commit | 3a49cb33bbddbdc506ff493364186f57d11baefd (patch) | |
tree | 260faf92844a9ffdbfaa44a220722032d07188c3 /test/bootstrap-dist.php | |
parent | fe32a359dca1d0c522d8c8b7991974ef50469c22 (diff) |
Move defining envs to defineTestingGlobals
Signed-off-by: William Desportes <williamdes@wdes.fr>
Diffstat (limited to 'test/bootstrap-dist.php')
-rw-r--r-- | test/bootstrap-dist.php | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/test/bootstrap-dist.php b/test/bootstrap-dist.php index 137cde2445..e48cc7d142 100644 --- a/test/bootstrap-dist.php +++ b/test/bootstrap-dist.php @@ -41,34 +41,6 @@ if (! defined('PHPMYADMIN')) { } // phpcs:enable -// Selenium tests setup -$test_defaults = [ - 'TESTSUITE_SERVER' => 'localhost', - 'TESTSUITE_USER' => 'root', - 'TESTSUITE_PASSWORD' => '', - 'TESTSUITE_DATABASE' => 'test', - 'TESTSUITE_PORT' => 3306, - 'TESTSUITE_URL' => 'http://localhost/phpmyadmin/', - 'TESTSUITE_SELENIUM_HOST' => '', - 'TESTSUITE_SELENIUM_PORT' => '4444', - 'TESTSUITE_SELENIUM_BROWSER' => 'firefox', - 'TESTSUITE_SELENIUM_COVERAGE' => '', - 'TESTSUITE_BROWSERSTACK_USER' => '', - 'TESTSUITE_BROWSERSTACK_KEY' => '', - 'TESTSUITE_FULL' => '', - 'CI_MODE' => '', -]; -if (PHP_SAPI == 'cli') { - foreach ($test_defaults as $varname => $defvalue) { - $envvar = getenv($varname); - if ($envvar) { - $GLOBALS[$varname] = $envvar; - } else { - $GLOBALS[$varname] = $defvalue; - } - } -} - require_once ROOT_PATH . 'libraries/vendor_config.php'; require_once AUTOLOAD_FILE; Loader::loadFunctions(); |