protected function CommentStatisticsTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/modules/comment/tests/src/Functional/CommentStatisticsTest.php \Drupal\Tests\comment\Functional\CommentStatisticsTest::setUp()
- 9 core/modules/comment/tests/src/Functional/CommentStatisticsTest.php \Drupal\Tests\comment\Functional\CommentStatisticsTest::setUp()
File
- core/
modules/ comment/ tests/ src/ Functional/ CommentStatisticsTest.php, line 28
Class
- CommentStatisticsTest
- Tests comment statistics on nodes.
Namespace
Drupal\Tests\comment\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Create a second user to post comments.
$this->webUser2 = $this
->drupalCreateUser([
'post comments',
'create article content',
'edit own comments',
'post comments',
'skip comment approval',
'access comments',
'access content',
]);
}