You are here

protected function ForumIndexTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/forum/tests/src/Functional/ForumIndexTest.php \Drupal\Tests\forum\Functional\ForumIndexTest::setUp()
  2. 10 core/modules/forum/tests/src/Functional/ForumIndexTest.php \Drupal\Tests\forum\Functional\ForumIndexTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/forum/tests/src/Functional/ForumIndexTest.php, line 26

Class

ForumIndexTest
Tests the forum index listing.

Namespace

Drupal\Tests\forum\Functional

Code

protected function setUp() : void {
  parent::setUp();

  // Create a test user.
  $web_user = $this
    ->drupalCreateUser([
    'create forum content',
    'edit own forum content',
    'edit any forum content',
    'administer nodes',
    'administer forums',
  ]);
  $this
    ->drupalLogin($web_user);
}