diff --git a/automatic_updates.module b/automatic_updates.module index 1379ccbb91731d6b9b3e661a6758fb85c401a8e1..08df7b9bfbca4cfb13e60135d9c8c359659f56c9 100644 --- a/automatic_updates.module +++ b/automatic_updates.module @@ -84,3 +84,15 @@ function automatic_updates_form_update_manager_update_form_alter(&$form, FormSta } } } + +/** + * Implements hook_local_tasks_alter(). + */ +function automatic_updates_local_tasks_alter(&$local_tasks) { + // The Update modules current update form only allows updating modules and + // themes via downloading archive files which could produce unexpected results + // on a site using our Composer based updater. + unset($local_tasks['update.report_update']); + unset($local_tasks['update.module_update']); + unset($local_tasks['update.theme_update']); +} diff --git a/tests/src/Functional/UpdaterFormTest.php b/tests/src/Functional/UpdaterFormTest.php index 73e0d983b114396f255cf8eddbd0deed665e3506..ab8180ea049230be430e40a90d19d30aaa87128a 100644 --- a/tests/src/Functional/UpdaterFormTest.php +++ b/tests/src/Functional/UpdaterFormTest.php @@ -98,9 +98,7 @@ class UpdaterFormTest extends BrowserTestBase { // https://www.drupal.org/i/3233564 $this->clickLink('Extend'); $assert_session->pageTextContainsOnce('There is a security update available for your version of Drupal.'); - $this->clickLink('Update'); - $assert_session->pageTextContainsOnce('Drupal core updates are supported by the enabled Automatic Updates module'); - $this->clickLink('Automatic Updates module'); + $this->clickLink('Automatic Updates'); $assert_session->pageTextNotContains('There is a security update available for your version of Drupal.'); $cells = $assert_session->elementExists('css', '#edit-projects .update-update-security') ->findAll('css', 'td');