$messages[]=t('PHP changed from running as "@previous" to "@current". This can lead to inconsistent and misleading results.',['@previous'=>$php_sapi,'@current'=>PHP_SAPI]);
$form['automatic_updates_enable_readiness_checks']['#description']=t('Readiness checks were last run @time ago. Manually <a href="@link">run the readiness checks</a>.',[
drupal_set_message(t('No issues found. Your site is completely ready for <a href="@readiness_checks">automatic updates</a>.',['@readiness_checks'=>'https://www.drupal.org/docs/8/update/automatic-updates#readiness-checks']),'status',FALSE);
'value'=>t('Your site is ready to for <a href="@readiness_checks">automatic updates</a>.',['@readiness_checks'=>'https://www.drupal.org/docs/8/update/automatic-updates#readiness-checks']),
$requirements['automatic_updates_readiness']['value']=t('Your site has not recently checked if it is ready to apply <a href="@readiness_checks">automatic updates</a>.',['@readiness_checks'=>'https://www.drupal.org/docs/8/update/automatic-updates#readiness-checks']);
drupal_set_message(t('Your site is currently failing readiness checks for automatic updates. It cannot be <a href="@readiness_checks">automatically updated</a> until further action is performed:',['@readiness_checks'=>'https://www.drupal.org/docs/8/update/automatic-updates#readiness-checks']),'error',FALSE);
drupal_set_message(t('Your site does not pass some readiness checks for automatic updates. Depending on the nature of the failures, it might effect the eligibility for <a href="@readiness_checks">automatic updates</a>.',['@readiness_checks'=>'https://www.drupal.org/docs/8/update/automatic-updates#readiness-checks']),'warning',FALSE);
foreach($resultsas$message){
drupal_set_message($message,'warning',FALSE);
}
}
}
...
...
@@ -52,6 +71,22 @@ function automatic_updates_menu() {
$this->assertText('Your site does not pass some readiness checks for automatic updates. Depending on the nature of the failures, it might effect the eligibility for automatic updates.');
$this->assertText('PHP changed from running as');
$this->assertText('This can lead to inconsistent and misleading results.');