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

(cherry picked from commit c9248457c4)
merge-requests/7879/head
Alex Pott 2024-05-01 08:42:27 +01:00
parent 21876e8b5a
commit 095d29e7e3
No known key found for this signature in database
GPG Key ID: BDA67E7EE836E5CE
1 changed files with 3 additions and 9 deletions

View File

@ -28,14 +28,6 @@ class ForumUninstallTest extends BrowserTestBase {
*/ */
protected static $modules = ['forum']; protected static $modules = ['forum'];
/**
* {@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} * {@inheritdoc}
*/ */
@ -177,7 +169,9 @@ class ForumUninstallTest extends BrowserTestBase {
* Tests uninstallation of forum module when vocabulary is deleted. * Tests uninstallation of forum module when vocabulary is deleted.
*/ */
public function testForumUninstallWithoutForumVocabulary() { public function testForumUninstallWithoutForumVocabulary() {
$this->drupalLogin($this->rootUser); $this->drupalLogin($this->drupalCreateUser([
'administer modules',
]));
Vocabulary::load('forums')->delete(); Vocabulary::load('forums')->delete();
// Now attempt to uninstall forum. // Now attempt to uninstall forum.