Verified Commit c9248457 authored by Alex Pott's avatar Alex Pott
Browse files

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

parent 774dcb1b
Loading
Loading
Loading
Loading
Loading
+3 −9
Original line number Diff line number Diff line
@@ -28,14 +28,6 @@ class ForumUninstallTest extends BrowserTestBase {
   */
  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}
   */
@@ -177,7 +169,9 @@ public function testForumUninstallWithoutFieldStorage() {
   * Tests uninstallation of forum module when vocabulary is deleted.
   */
  public function testForumUninstallWithoutForumVocabulary() {
    $this->drupalLogin($this->rootUser);
    $this->drupalLogin($this->drupalCreateUser([
      'administer modules',
    ]));
    Vocabulary::load('forums')->delete();

    // Now attempt to uninstall forum.