Issue #3205909: Ensure only needed permission are used for Update module functional tests
1 unresolved thread
Merge request reports
Activity
added 4 commits
Toggle commit list42 42 $admin_user = $this->drupalCreateUser([ 43 43 'administer site configuration', 44 44 'administer modules', 45 'administer themes', In
UpdateSemverTestBase::setUp()
, we grant theadminister modules
permission to $admin_user. It turns out that this permission is needed by only one test case (\Drupal\Tests\update\Functional\UpdateSemverCoreTest::testModulePageRegularUpdate()
), so I would suggest we remove theadminister modules
permission from here, and change that test to explicitly log in a user with theadminister site configuration
andadminister modules
permissions.
added 1 commit
- ff319f57 - remove 'administer modules' except in the 1 needed method
Please register or sign in to reply