function CommentBookTest::setUp
Same name in other branches
- 9 core/modules/comment/tests/src/Functional/CommentBookTest.php \Drupal\Tests\comment\Functional\CommentBookTest::setUp()
- 8.9.x core/modules/comment/tests/src/Functional/CommentBookTest.php \Drupal\Tests\comment\Functional\CommentBookTest::setUp()
- 11.x 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 38
Class
- CommentBookTest
- Tests visibility of comments on book pages.
Namespace
Drupal\Tests\book\Functional\CommentCode
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.