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

remove update tabs

parent 7cc3b99c
No related branches found
No related tags found
No related merge requests found
......@@ -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']);
}
......@@ -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');
......
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