2 merge requests!989Issue #3356804 by phenaproxima: Flag a warning during status check if the...,!937Issue #3375679: CronFrequencyValidator should not check if updates will be run via console
// If cron updates are enabled but the method is 'console' no validation is
// needed.
$this->config('automatic_updates.settings')
->set('unattended.level',CronUpdateStage::ALL)
->set('unattended.method','console')
->save();
$this->assertCheckerResultsFromManager([],TRUE);
// If cron updates are enabled and the method is 'web' validation is needed.
$this->config('automatic_updates.settings')
$this->config('automatic_updates.settings')
->set('unattended.level',CronUpdateStage::ALL)
->set('unattended.level',CronUpdateStage::ALL)
->set('unattended.method','web')
->save();
->save();
$error=ValidationResult::createError([
$error=ValidationResult::createError([
t('Cron has not run recently. For more information, see the online handbook entry for <a href="https://www.drupal.org/cron">configuring cron jobs</a> to run at least every 3 hours.'),
t('Cron has not run recently. For more information, see the online handbook entry for <a href="https://www.drupal.org/cron">configuring cron jobs</a> to run at least every 3 hours.'),