function ForumIndexTest::setUp
Same name in other branches
- 8.9.x core/modules/forum/tests/src/Functional/ForumIndexTest.php \Drupal\Tests\forum\Functional\ForumIndexTest::setUp()
- 10 core/modules/forum/tests/src/Kernel/ForumIndexTest.php \Drupal\Tests\forum\Kernel\ForumIndexTest::setUp()
- 10 core/modules/forum/tests/src/Functional/ForumIndexTest.php \Drupal\Tests\forum\Functional\ForumIndexTest::setUp()
- 11.x core/modules/forum/tests/src/Kernel/ForumIndexTest.php \Drupal\Tests\forum\Kernel\ForumIndexTest::setUp()
- 11.x 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 29
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.