Issue #3439894 by SolimanHarkas, vensires: Fix Locale tests that rely on UID1's super user behavior

(cherry picked from commit e7ec828459)
merge-requests/7849/head
Alex Pott 2024-04-16 14:30:18 +01:00
parent e1e8d87df6
commit def593ba82
No known key found for this signature in database
GPG Key ID: BDA67E7EE836E5CE
1 changed files with 3 additions and 8 deletions

View File

@ -25,13 +25,6 @@ class LocaleLocaleLookupTest extends BrowserTestBase {
*/
protected static $modules = ['locale', 'locale_test'];
/**
* {@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}
@ -53,7 +46,9 @@ class LocaleLocaleLookupTest extends BrowserTestBase {
ConfigurableLanguage::createFromLangcode('fr')->save();
$this->config('system.site')->set('default_langcode', 'fr')->save();
$this->drupalLogin($this->rootUser);
$this->drupalLogin($this->drupalCreateUser([
'administer modules',
]));
}
/**