mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/10891] Allow specifying test_config.php path via environment.
PHPBB3-10891
This commit is contained in:
@@ -58,9 +58,19 @@ class phpbb_test_case_helpers
|
||||
));
|
||||
}
|
||||
|
||||
if (file_exists(dirname(__FILE__) . '/../test_config.php'))
|
||||
if (isset($_SERVER['PHPBB_TEST_CONFIG']))
|
||||
{
|
||||
include(dirname(__FILE__) . '/../test_config.php');
|
||||
// Could be an absolute path
|
||||
$test_config = $_SERVER['PHPBB_TEST_CONFIG'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$test_config = dirname(__FILE__) . '/../test_config.php';
|
||||
}
|
||||
|
||||
if (file_exists($test_config))
|
||||
{
|
||||
include($test_config);
|
||||
|
||||
$config = array_merge($config, array(
|
||||
'dbms' => $dbms,
|
||||
|
Reference in New Issue
Block a user