function CommentBookTest::setUp

Overrides BrowserTestBase::setUp

File

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

Class

CommentBookTest
Tests visibility of comments on book pages.

Namespace

Drupal\Tests\comment\Functional

Code

protected function setUp() : void {
  parent::setUp();
  // Create comment field on book.
  $this->addDefaultCommentField('node', 'book');
}

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