Skip to content
Snippets Groups Projects
Commit 20454467 authored by Ted Bowman's avatar Ted Bowman
Browse files

Issue #3364731 by tedbow: Create a link to Cron documentation on settings form

parent 03ea58a6
No related branches found
No related tags found
No related merge requests found
......@@ -281,6 +281,7 @@ function automatic_updates_form_update_settings_alter(array &$form): void {
],
],
],
'#description' => t('To use the <code>/system/cron</code> method <a href="http://drupal.org/docs/user_guide/en/security-cron.html">ensure cron is set up correctly</a>.'),
];
$form['#submit'][] = '_automatic_updates_submit_update_settings';
}
......
......@@ -40,6 +40,7 @@ class UpdateSettingsFormTest extends WebDriverTestBase {
$page = $this->getSession()->getPage();
$page->selectFieldOption('unattended_level', CronUpdateStage::SECURITY);
$this->assertNotEmpty($assert_session->waitForElementVisible('named', ['field', 'unattended_method']));
$assert_session->elementAttributeContains('named', ['link', 'ensure cron is set up correctly'], 'href', 'http://drupal.org/docs/user_guide/en/security-cron.html');
// Change the method, to ensure it is properly saved in config.
$page->selectFieldOption('unattended_method', 'console');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment