From 6cea3277240f51287b399f9bc29642fa5a5ec351 Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Tue, 16 Apr 2024 23:13:23 +0100 Subject: [PATCH] Issue #3439924 by SolimanHarkas, vensires: Fix Minimal profile tests that rely on UID1's super user behavior --- .../minimal/tests/src/Functional/MinimalTest.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/core/profiles/minimal/tests/src/Functional/MinimalTest.php b/core/profiles/minimal/tests/src/Functional/MinimalTest.php index 2f3a9f1f066d..ffea86934e66 100644 --- a/core/profiles/minimal/tests/src/Functional/MinimalTest.php +++ b/core/profiles/minimal/tests/src/Functional/MinimalTest.php @@ -21,14 +21,6 @@ class MinimalTest extends BrowserTestBase { protected $profile = 'minimal'; - /** - * {@inheritdoc} - * - * @todo Remove and fix test to not rely on super user. - * @see https://www.drupal.org/project/drupal/issues/3437620 - */ - protected bool $usesSuperUserAccessPolicy = TRUE; - /** * {@inheritdoc} */ @@ -55,7 +47,9 @@ public function testMinimal() { $this->assertSession()->pageTextContains('Administration'); // Ensure that there are no pending updates after installation. - $this->drupalLogin($this->rootUser); + $this->drupalLogin($this->drupalCreateUser([ + 'administer software updates', + ])); $this->drupalGet('update.php/selection'); $this->updateRequirementsProblem(); $this->drupalGet('update.php/selection'); -- GitLab