You are here

protected function CommentNotifyTokenReplaceTest::setUp in Comment Notify 8

Overrides TokenReplaceKernelTestBase::setUp

File

tests/src/Kernel/CommentNotifyTokenReplaceTest.php, line 32

Class

CommentNotifyTokenReplaceTest
Checks comment_notify token replacement.

Namespace

Drupal\Tests\comment_notify\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installConfig([
    'node',
    'comment',
    'comment_notify',
  ]);
  $this
    ->installSchema('comment', [
    'comment_entity_statistics',
  ]);
  $this
    ->installSchema('comment_notify', [
    'comment_notify',
  ]);
  $node_type = NodeType::create([
    'type' => 'article',
    'name' => 'Article',
  ]);
  $node_type
    ->save();
  $this
    ->addDefaultCommentField('node', 'article');
}