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
d9b09373
Commit
d9b09373
authored
2 years ago
by
Theresa Grannum
Committed by
Adam G-H
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3296065
by Theresa.Grannum: Fix brittle permission handling in UpdaterFormTest::setUp()
parent
5ae721cb
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!382
Issue #3296065: Fix brittle permission handling in UpdaterFormTest::setUp()
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/src/Functional/UpdaterFormTest.php
+2
-5
2 additions, 5 deletions
tests/src/Functional/UpdaterFormTest.php
with
2 additions
and
5 deletions
tests/src/Functional/UpdaterFormTest.php
+
2
−
5
View file @
d9b09373
...
...
@@ -53,15 +53,12 @@ class UpdaterFormTest extends AutomaticUpdatesFunctionalTestBase {
'access site in maintenance mode'
,
'administer modules'
,
'access site reports'
,
'view update notifications'
,
];
// BEGIN: DELETE FROM CORE MERGE REQUEST
// 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_p
op
(
$permissions
);
if
(
in_array
(
'view update notifications'
,
$available_permissions
,
TRUE
))
{
array_p
ush
(
$permissions
,
'view update notifications'
);
}
// END: DELETE FROM CORE MERGE REQUEST
$user
=
$this
->
createUser
(
$permissions
);
$this
->
drupalLogin
(
$user
);
$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