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.
This commit is contained in:
David Monllao 2013-03-21 13:14:50 +08:00
parent 7112729206
commit 355a2c2c25

View File

@ -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);