protected function ForumIndexTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/modules/forum/tests/src/Functional/ForumIndexTest.php \Drupal\Tests\forum\Functional\ForumIndexTest::setUp()
- 9 core/modules/forum/tests/src/Functional/ForumIndexTest.php \Drupal\Tests\forum\Functional\ForumIndexTest::setUp()
File
- core/
modules/ forum/ tests/ src/ Functional/ ForumIndexTest.php, line 26
Class
- ForumIndexTest
- Tests the forum index listing.
Namespace
Drupal\Tests\forum\FunctionalCode
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);
}