Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
automatic_updates
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
automatic_updates
Commits
b6d7a294
Commit
b6d7a294
authored
1 year ago
by
Adam G-H
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3363497
: Remove unnecessary workaround for a permission that was added in Drupal 9.4
parent
22a6a416
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!989
Issue #3356804 by phenaproxima: Flag a warning during status check if the...
,
!973
Remove workaround
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/src/Functional/UpdaterFormTestBase.php
+3
-8
3 additions, 8 deletions
tests/src/Functional/UpdaterFormTestBase.php
with
3 additions
and
8 deletions
tests/src/Functional/UpdaterFormTestBase.php
+
3
−
8
View file @
b6d7a294
...
@@ -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
();
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment