You are here

protected function CommentBlockTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/comment/tests/src/Functional/CommentBlockTest.php \Drupal\Tests\comment\Functional\CommentBlockTest::setUp()
  2. 9 core/modules/comment/tests/src/Functional/CommentBlockTest.php \Drupal\Tests\comment\Functional\CommentBlockTest::setUp()

File

core/modules/comment/tests/src/Functional/CommentBlockTest.php, line 26

Class

CommentBlockTest
Tests comment block functionality.

Namespace

Drupal\Tests\comment\Functional

Code

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',
  ]);
}