Skip to content
Snippets Groups Projects
Unverified Commit 00e48f5b authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3205909 by kunal.sachdev, tedbow, phenaproxima: Ensure only needed...

Issue #3205909 by kunal.sachdev, tedbow, phenaproxima: Ensure only needed permissions are used for Update module functional tests

(cherry picked from commit 20f3c89d)
parent 23fc2b7d
No related branches found
No related tags found
15 merge requests!2496Issue #3222757 by lauriii, Wim Leers, nod_, rachel_norfolk, itmaybejj,...,!2366Issue #3285105 by Daniel Arend,!2304Issue #3258987: Class "Drupal\Core\Utility\Error" not found in _drupal_error_handler_real() due to bug in PHP 8.1.0-8.1.5,!2148Issue #3270899: Remove Color module from core,!2136Issue #3227824: Move the linkset functionality from the decoupled menus contributed module to core's system module,!2071Issue #927570: Setting 403 or 404 handler to a page that redirects leads to endless loop,!1975Issue #3269749: losing query params from user to user/login redirect,!1959Issue #3236497: Allow other modules to opt out of security release message from update_page_top,!1387Draft: Resolve #2511878 "Support enclosure field",!1282Issue #3227824: Add the decoupled menus module to core,!1229Issue #3225621: Use media query event listener instead of a listener on the resize event,!799Issue #3214332: Preview content is broken in Claro.,!776Resolve #85494 "Use email verification 9.3.x",!558Resolve #3020422 "Toolbar style update",!231Issue #2671162: summary text wysiwyg patch working fine on 9.2.0-dev
......@@ -26,7 +26,6 @@ protected function setUp(): void {
$admin_user = $this->drupalCreateUser([
'administer modules',
'administer software updates',
'administer site configuration',
]);
$this->drupalLogin($admin_user);
......
......@@ -344,6 +344,10 @@ public function testModulePageUpToDate() {
* Checks the messages at admin/modules when an update is missing.
*/
public function testModulePageRegularUpdate() {
$this->drupalLogin($this->drupalCreateUser([
'administer site configuration',
'administer modules',
]));
$this->setProjectInstalledVersion('8.0.0');
// Instead of using refreshUpdateStatus(), set these manually.
$this->config('update.settings')
......@@ -366,6 +370,11 @@ public function testModulePageRegularUpdate() {
* Checks the messages at admin/modules when a security update is missing.
*/
public function testModulePageSecurityUpdate() {
$this->drupalLogin($this->drupalCreateUser([
'administer site configuration',
'administer modules',
'administer themes',
]));
$this->setProjectInstalledVersion('8.0.0');
// Instead of using refreshUpdateStatus(), set these manually.
$this->config('update.settings')
......
......@@ -41,9 +41,7 @@ protected function setUp(): void {
parent::setUp();
$admin_user = $this->drupalCreateUser([
'administer site configuration',
'administer modules',
'administer themes',
]);
]);
$this->drupalLogin($admin_user);
$this->drupalPlaceBlock('local_actions_block');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment