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
parent
21876e8b5a
commit
095d29e7e3
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue