From b7c5627f5bc0cd4eca70ad674bb2e8fd0bc8bdbc Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Fri, 25 May 2012 10:21:12 +0200 Subject: [PATCH] MDL-33089 flag test database as soon as possible in PHPUnit init --- lib/installlib.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/installlib.php b/lib/installlib.php index e652a8c6267..7da6ed6a1f7 100644 --- a/lib/installlib.php +++ b/lib/installlib.php @@ -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);