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