Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
keycdn
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
keycdn
Commits
2cbddb92
Commit
2cbddb92
authored
Dec 19, 2023
by
Jonathan Smith
Committed by
Moshe Weitzman
Dec 19, 2023
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3409652
: Admin user needs extra permission
parent
73406f43
No related branches found
No related tags found
1 merge request
!21
Issue #3409652: Admin user needs extra permission
Pipeline
#126109
passed with warnings
Mar 22, 2024
Stage: build
Stage: validate
Stage: test
Stage: deploy
Changes
1
Pipelines
143
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/src/Functional/ExampleTest.php
+6
-1
6 additions, 1 deletion
tests/src/Functional/ExampleTest.php
with
6 additions
and
1 deletion
tests/src/Functional/ExampleTest.php
+
6
−
1
View file @
2cbddb92
...
@@ -25,7 +25,12 @@ class ExampleTest extends BrowserTestBase {
...
@@ -25,7 +25,12 @@ class ExampleTest extends BrowserTestBase {
* Test callback.
* Test callback.
*/
*/
public
function
testSomething
()
{
public
function
testSomething
()
{
$admin_user
=
$this
->
drupalCreateUser
([
'access administration pages'
]);
// In Drupal 10.1 'access administration pages' was sufficient for /admin
// But from 10.2 'administer site configuration' is also required.
$admin_user
=
$this
->
drupalCreateUser
([
'access administration pages'
,
'administer site configuration'
,
]);
$this
->
drupalLogin
(
$admin_user
);
$this
->
drupalLogin
(
$admin_user
);
$this
->
drupalGet
(
'admin'
);
$this
->
drupalGet
(
'admin'
);
$this
->
assertSession
()
->
elementExists
(
'xpath'
,
'//h1[text() = "Administration"]'
);
$this
->
assertSession
()
->
elementExists
(
'xpath'
,
'//h1[text() = "Administration"]'
);
...
...
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