MDL-48559 Behat: Enable web cron by default in behat tests

This commit is contained in:
Ankit Agarwal 2015-02-09 12:10:45 +05:30
parent 9e01886562
commit 1ae85f2184

View File

@ -205,6 +205,9 @@ class behat_hooks extends behat_base {
$user = $DB->get_record('user', array('username' => 'admin'));
\core\session\manager::set_user($user);
// Enable web cron.
set_config('cronclionly', 0);
// Reset the browser if specified in config.php.
if (!empty($CFG->behat_restart_browser_after) && $this->running_javascript()) {
$now = time();