MDL-39343 disables MUC caches in phpunit and behat install/drop

This commit is contained in:
Petr Škoda 2013-04-30 15:05:53 +02:00
parent e2e35e71f9
commit 2cc9fa88f6
2 changed files with 7 additions and 0 deletions

View File

@ -50,6 +50,9 @@ list($options, $unrecognized) = cli_get_params(
)
);
if ($options['install'] or $options['drop']) {
define('CACHE_DISABLE_ALL', true);
}
// Checking util.php CLI script usage.
$help = "

View File

@ -60,6 +60,10 @@ if (file_exists(__DIR__.'/../../../../vendor/phpunit/phpunit/PHPUnit/Autoload.ph
}
}
if ($options['install'] or $options['drop']) {
define('CACHE_DISABLE_ALL', true);
}
if ($options['run']) {
unset($options);
unset($unrecognized);