From 1ae85f2184b25b96f0922c4127f1b92c5db084af Mon Sep 17 00:00:00 2001 From: Ankit Agarwal Date: Mon, 9 Feb 2015 12:10:45 +0530 Subject: [PATCH] MDL-48559 Behat: Enable web cron by default in behat tests --- lib/tests/behat/behat_hooks.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/tests/behat/behat_hooks.php b/lib/tests/behat/behat_hooks.php index 6e2653f9ed6..9ba9ae5df1a 100644 --- a/lib/tests/behat/behat_hooks.php +++ b/lib/tests/behat/behat_hooks.php @@ -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();