MDL-48559 behat: Moving cronclionly to the installer
authorAnkit Agarwal <ankit@moodle.com>
Tue, 17 Feb 2015 05:17:28 +0000 (10:47 +0530)
committerDavid Monllao <davidm@moodle.com>
Tue, 17 Feb 2015 06:33:56 +0000 (14:33 +0800)
lib/behat/classes/util.php
lib/tests/behat/behat_hooks.php

index ee1f112..95f42fe 100644 (file)
@@ -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();
 
index 9ba9ae5..6e2653f 100644 (file)
@@ -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();