Skip to content
Snippets Groups Projects
Commit b6d7a294 authored by Adam G-H's avatar Adam G-H
Browse files

Issue #3363497: Remove unnecessary workaround for a permission that was added in Drupal 9.4

parent 22a6a416
No related branches found
No related tags found
2 merge requests!989Issue #3356804 by phenaproxima: Flag a warning during status check if the...,!973Remove workaround
...@@ -45,20 +45,15 @@ abstract class UpdaterFormTestBase extends AutomaticUpdatesFunctionalTestBase { ...@@ -45,20 +45,15 @@ abstract class UpdaterFormTestBase extends AutomaticUpdatesFunctionalTestBase {
parent::setUp(); parent::setUp();
$this->setReleaseMetadata(__DIR__ . '/../../../package_manager/tests/fixtures/release-history/drupal.9.8.1-security.xml'); $this->setReleaseMetadata(__DIR__ . '/../../../package_manager/tests/fixtures/release-history/drupal.9.8.1-security.xml');
$permissions = [ $user = $this->createUser([
'administer site configuration', 'administer site configuration',
'administer software updates', 'administer software updates',
'access administration pages', 'access administration pages',
'access site in maintenance mode', 'access site in maintenance mode',
'administer modules', 'administer modules',
'access site reports', 'access site reports',
]; 'view update notifications',
// Check for permission that was added in Drupal core 9.4.x. ]);
$available_permissions = array_keys($this->container->get('user.permissions')->getPermissions());
if (in_array('view update notifications', $available_permissions, TRUE)) {
array_push($permissions, 'view update notifications');
}
$user = $this->createUser($permissions);
$this->drupalLogin($user); $this->drupalLogin($user);
$this->checkForUpdates(); $this->checkForUpdates();
} }
......
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