function CommentBookTest::setUp

Same name and namespace in other branches
  1. 9 core/modules/comment/tests/src/Functional/CommentBookTest.php \Drupal\Tests\comment\Functional\CommentBookTest::setUp()
  2. 8.9.x core/modules/comment/tests/src/Functional/CommentBookTest.php \Drupal\Tests\comment\Functional\CommentBookTest::setUp()
  3. 10 core/modules/book/tests/src/Functional/Comment/CommentBookTest.php \Drupal\Tests\book\Functional\Comment\CommentBookTest::setUp()

Overrides BrowserTestBase::setUp

File

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

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.