You are here

protected function CommentBookTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 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() : void {
  parent::setUp();

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