diff --git a/core/modules/update/tests/src/Functional/FileTransferAuthorizeFormTest.php b/core/modules/update/tests/src/Functional/FileTransferAuthorizeFormTest.php index 833b0d3b1ae588a4974fd7b6ea6b94183c2f6083..20d48d93b1a5ecb1ae8d5f9d489b824a421c25c5 100644 --- a/core/modules/update/tests/src/Functional/FileTransferAuthorizeFormTest.php +++ b/core/modules/update/tests/src/Functional/FileTransferAuthorizeFormTest.php @@ -26,7 +26,6 @@ protected function setUp(): void { $admin_user = $this->drupalCreateUser([ 'administer modules', 'administer software updates', - 'administer site configuration', ]); $this->drupalLogin($admin_user); diff --git a/core/modules/update/tests/src/Functional/UpdateSemverCoreTest.php b/core/modules/update/tests/src/Functional/UpdateSemverCoreTest.php index 64b371c5736903f3b7a9e1990b8adb0a2a50e96d..974b6eb48624a0cb37175c5922c66f18438b6a0e 100644 --- a/core/modules/update/tests/src/Functional/UpdateSemverCoreTest.php +++ b/core/modules/update/tests/src/Functional/UpdateSemverCoreTest.php @@ -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') diff --git a/core/modules/update/tests/src/Functional/UpdateSemverTestBase.php b/core/modules/update/tests/src/Functional/UpdateSemverTestBase.php index 03bdb3c7e7f36f192b79edd544a460d3ed524fb8..f16e4f13498e9a3f35857a4cd93bb7938fec22b7 100644 --- a/core/modules/update/tests/src/Functional/UpdateSemverTestBase.php +++ b/core/modules/update/tests/src/Functional/UpdateSemverTestBase.php @@ -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'); }