MDL-39854 disable component cachin in BEHAT_TEST

This commit is contained in:
David Monllao 2013-06-19 11:28:32 +08:00
parent 11fb83fee8
commit 1d4ae19d62

View File

@ -79,7 +79,9 @@ class core_component {
return;
}
if (PHPUNIT_TEST or !empty($CFG->early_install_lang) or (defined('BEHAT_UTIL') and BEHAT_UTIL)) {
if (PHPUNIT_TEST or !empty($CFG->early_install_lang) or
(defined('BEHAT_UTIL') and BEHAT_UTIL) or
(defined('BEHAT_TEST') and BEHAT_TEST)) {
// 1/ Do not bother storing the file for unit tests,
// we need fresh copy for each execution and
// later we keep it in memory.