1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-09 18:26:32 +02:00

[feature/functional-tests] Generate config correctly and install only once

PHPBB3-10414
This commit is contained in:
Nils Adermann
2011-10-14 17:10:21 +02:00
parent 0ffe494edd
commit a3928bf82d
4 changed files with 93 additions and 52 deletions

View File

@@ -58,7 +58,6 @@ class phpbb_test_case_helpers
'dbname' => '',
'dbuser' => '',
'dbpasswd' => '',
'phpbb_functional_url' => 'http://localhost/',
);
}
@@ -73,8 +72,12 @@ class phpbb_test_case_helpers
'dbname' => $dbname,
'dbuser' => $dbuser,
'dbpasswd' => $dbpasswd,
'phpbb_functional_url' => isset($phpbb_functional_url) ? $phpbb_functional_url : 'http://localhost/',
));
if (isset($phpbb_functional_url))
{
$config['phpbb_functional_url'] = $phpbb_functional_url;
}
}
if (isset($_SERVER['PHPBB_TEST_DBMS']))