You are here

protected function CommentBookTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/comment/tests/src/Functional/CommentBookTest.php \Drupal\Tests\comment\Functional\CommentBookTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/comment/tests/src/Functional/CommentBookTest.php, line 32

Class

CommentBookTest
Tests visibility of comments on book pages.

Namespace

Drupal\Tests\comment\Functional

Code

protected function setUp() {
  parent::setUp();

  // Create comment field on book.
  $this
    ->addDefaultCommentField('node', 'book');
}