function CommentBookTest::setUp

Overrides BrowserTestBase::setUp

File

core/modules/book/tests/src/Functional/Comment/CommentBookTest.php, line 38

Class

CommentBookTest
Tests visibility of comments on book pages.

Namespace

Drupal\Tests\book\Functional\Comment

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.