From bbcd308340db32f1b2e248801c221e93e4d3fae8 Mon Sep 17 00:00:00 2001 From: Ankit Agarwal Date: Tue, 17 Feb 2015 10:47:28 +0530 Subject: [PATCH] MDL-48559 behat: Moving cronclionly to the installer --- lib/behat/classes/util.php | 3 +++ lib/tests/behat/behat_hooks.php | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/behat/classes/util.php b/lib/behat/classes/util.php index ee1f112a102..95f42fea62d 100644 --- a/lib/behat/classes/util.php +++ b/lib/behat/classes/util.php @@ -111,6 +111,9 @@ class behat_util extends testing_util { // Disable some settings that are not wanted on test sites. set_config('noemailever', 1); + // Enable web cron. + set_config('cronclionly', 0); + // Keeps the current version of database and dataroot. self::store_versions_hash(); diff --git a/lib/tests/behat/behat_hooks.php b/lib/tests/behat/behat_hooks.php index 9ba9ae5df1a..6e2653f9ed6 100644 --- a/lib/tests/behat/behat_hooks.php +++ b/lib/tests/behat/behat_hooks.php @@ -205,9 +205,6 @@ 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();