// 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();
$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();