From 204544670a82809f8f05273969b4cc59c87625ff Mon Sep 17 00:00:00 2001 From: Ted Bowman <41201-tedbow@users.noreply.drupalcode.org> Date: Sun, 4 Jun 2023 20:00:33 +0000 Subject: [PATCH] Issue #3364731 by tedbow: Create a link to Cron documentation on settings form --- automatic_updates.module | 1 + tests/src/FunctionalJavascript/UpdateSettingsFormTest.php | 1 + 2 files changed, 2 insertions(+) diff --git a/automatic_updates.module b/automatic_updates.module index c1fa2958f4..450dbb3d4e 100644 --- a/automatic_updates.module +++ b/automatic_updates.module @@ -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'; } diff --git a/tests/src/FunctionalJavascript/UpdateSettingsFormTest.php b/tests/src/FunctionalJavascript/UpdateSettingsFormTest.php index 1ed608fefb..a6b45191d9 100644 --- a/tests/src/FunctionalJavascript/UpdateSettingsFormTest.php +++ b/tests/src/FunctionalJavascript/UpdateSettingsFormTest.php @@ -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'); -- GitLab