MDL-33089 flag test database as soon as possible in PHPUnit init

This commit is contained in:
Petr Skoda
2012-05-28 10:10:32 +02:00
parent 17b60e9d98
commit b7c5627f5b
+5
View File
@@ -455,6 +455,11 @@ function install_cli_database(array $options, $interactive) {
set_config('release', $release);
set_config('branch', $branch);
if (PHPUNIT_TEST) {
// mark as test database as soon as possible
set_config('phpunittest', 'na');
}
// install all plugins types, local, etc.
upgrade_noncore(true);