MDL-48559 behat: Moving cronclionly to the installer
This commit is contained in:
committed by
David Monllao
parent
c8171c1d72
commit
bbcd308340
@@ -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();
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user