mirror of
https://github.com/moodle/moodle.git
synced 2025-03-22 08:30:04 +01:00
MDL-48559 Behat: Enable web cron by default in behat tests
This commit is contained in:
parent
9e01886562
commit
1ae85f2184
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user