function CommentTokenReplaceTest::setUp

Same name and namespace in other branches
  1. 11.x core/modules/comment/tests/src/Kernel/CommentTokenReplaceTest.php \Drupal\Tests\comment\Kernel\CommentTokenReplaceTest::setUp()

Overrides TokenReplaceKernelTestBase::setUp

File

core/modules/comment/tests/src/Kernel/CommentTokenReplaceTest.php, line 32

Class

CommentTokenReplaceTest
Tests comment token replacement.

Namespace

Drupal\Tests\comment\Kernel

Code

protected function setUp() : void {
  parent::setUp();
  $this->installEntitySchema('comment');
  $this->installEntitySchema('entity_test');
  $this->installSchema('comment', [
    'comment_entity_statistics',
  ]);
  $this->installConfig([
    'comment',
    'filter',
  ]);
  $this->addDefaultCommentField('entity_test', 'entity_test', 'comment');
}

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