MDL-39441 behat: Restrict config.php allowed settings

This commit is contained in:
David Monllao 2013-07-12 21:42:04 +02:00
parent 07bbbcf174
commit f38e22ed91
3 changed files with 34 additions and 0 deletions

View file

@ -142,6 +142,9 @@ foreach ($vars as $var) {
$CFG->{$var} = $CFG->{'behat_' . $var};
}
// Clean $CFG extra values before performing any action.
behat_clean_init_config();
$CFG->noemailever = true;
$CFG->passwordsaltmain = 'moodle';