protected function CommentBlockTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/modules/comment/tests/src/Functional/CommentBlockTest.php \Drupal\Tests\comment\Functional\CommentBlockTest::setUp()
- 10 core/modules/comment/tests/src/Functional/CommentBlockTest.php \Drupal\Tests\comment\Functional\CommentBlockTest::setUp()
Overrides CommentTestBase::setUp
File
- core/modules/ comment/ tests/ src/ Functional/ CommentBlockTest.php, line 26 
Class
- CommentBlockTest
- Tests comment block functionality.
Namespace
Drupal\Tests\comment\FunctionalCode
protected function setUp() : void {
  parent::setUp();
  // Update admin user to have the 'administer blocks' permission.
  $this->adminUser = $this
    ->drupalCreateUser([
    'administer content types',
    'administer comments',
    'skip comment approval',
    'post comments',
    'access comments',
    'access content',
    'administer blocks',
  ]);
}