From c157ed68179e36147ec9222243015f231164bceb Mon Sep 17 00:00:00 2001
From: Ted Bowman <ted@tedbow.com>
Date: Thu, 23 Sep 2021 13:31:14 -0400
Subject: [PATCH] Revert "remove update tabs"

This reverts commit 13d96256a1c1dc7fb9da8731311dd3cf7b5bc908.
---
 automatic_updates.module                 | 12 ------------
 tests/src/Functional/UpdaterFormTest.php |  4 +++-
 2 files changed, 3 insertions(+), 13 deletions(-)

diff --git a/automatic_updates.module b/automatic_updates.module
index 08df7b9bfb..1379ccbb91 100644
--- a/automatic_updates.module
+++ b/automatic_updates.module
@@ -84,15 +84,3 @@ 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 ab8180ea04..73e0d983b1 100644
--- a/tests/src/Functional/UpdaterFormTest.php
+++ b/tests/src/Functional/UpdaterFormTest.php
@@ -98,7 +98,9 @@ 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('Automatic Updates');
+    $this->clickLink('Update');
+    $assert_session->pageTextContainsOnce('Drupal core updates are supported by the enabled Automatic Updates module');
+    $this->clickLink('Automatic Updates module');
     $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');
-- 
GitLab