MDL-39854 disable component caching in BEHAT_UTIL

This commit is contained in:
Petr Škoda
2013-06-18 12:02:07 +02:00
parent 402a974e5e
commit 04a4b97f99
+1 -1
View File
@@ -79,7 +79,7 @@ class core_component {
return;
}
if (PHPUNIT_TEST or !empty($CFG->early_install_lang)) {
if (PHPUNIT_TEST or !empty($CFG->early_install_lang) or (defined('BEHAT_UTIL') and BEHAT_UTIL)) {
// 1/ Do not bother storing the file for unit tests,
// we need fresh copy for each execution and
// later we keep it in memory.