From 355a2c2c2557eb4fabb2cf39e76609888267a8a1 Mon Sep 17 00:00:00 2001 From: David Monllao Date: Thu, 21 Mar 2013 13:14:50 +0800 Subject: [PATCH] MDL-38524 behat: Add fake jsrev and themerev The behat admin tool does not use moodle database as it runs before anything else, it should set CFG->jsrev and CFG->themerev as they are required. --- admin/tool/behat/cli/util.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/admin/tool/behat/cli/util.php b/admin/tool/behat/cli/util.php index a69fa08b813..c803dd32249 100644 --- a/admin/tool/behat/cli/util.php +++ b/admin/tool/behat/cli/util.php @@ -142,6 +142,9 @@ foreach ($vars as $var) { $CFG->noemailever = true; $CFG->passwordsaltmain = 'moodle'; +$CFG->themerev = 1; +$CFG->jsrev = 1; + // Unset cache and temp directories to reset them again with the new $CFG->dataroot. unset($CFG->cachedir); unset($CFG->tempdir);