function ForumIndexTest::setUp

Same name in this branch
  1. 11.x core/modules/forum/tests/src/Functional/ForumIndexTest.php \Drupal\Tests\forum\Functional\ForumIndexTest::setUp()
Same name in other branches
  1. 9 core/modules/forum/tests/src/Functional/ForumIndexTest.php \Drupal\Tests\forum\Functional\ForumIndexTest::setUp()
  2. 8.9.x core/modules/forum/tests/src/Functional/ForumIndexTest.php \Drupal\Tests\forum\Functional\ForumIndexTest::setUp()
  3. 10 core/modules/forum/tests/src/Kernel/ForumIndexTest.php \Drupal\Tests\forum\Kernel\ForumIndexTest::setUp()
  4. 10 core/modules/forum/tests/src/Functional/ForumIndexTest.php \Drupal\Tests\forum\Functional\ForumIndexTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/forum/tests/src/Kernel/ForumIndexTest.php, line 34

Class

ForumIndexTest
Defines a class for testing the forum_index table.

Namespace

Drupal\Tests\forum\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    $this->installEntitySchema('node');
    $this->installEntitySchema('user');
    $this->installEntitySchema('comment');
    $this->installEntitySchema('taxonomy_term');
    $this->installSchema('forum', [
        'forum_index',
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.