Issue #3439924 by SolimanHarkas, vensires: Fix Minimal profile tests that rely on UID1's super user behavior

merge-requests/7532/head
Alex Pott 2024-04-16 23:13:23 +01:00
parent 8b19bc6ad5
commit 6cea327724
No known key found for this signature in database
GPG Key ID: BDA67E7EE836E5CE
1 changed files with 3 additions and 9 deletions

View File

@ -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 @@ class MinimalTest extends BrowserTestBase {
$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');