function CommentBlockTest::setUp

Same name in other branches
  1. 9 core/modules/comment/tests/src/Functional/CommentBlockTest.php \Drupal\Tests\comment\Functional\CommentBlockTest::setUp()
  2. 10 core/modules/comment/tests/src/Functional/CommentBlockTest.php \Drupal\Tests\comment\Functional\CommentBlockTest::setUp()
  3. 11.x 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 27

Class

CommentBlockTest
Tests comment block functionality.

Namespace

Drupal\Tests\comment\Functional

Code

protected function setUp() {
    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',
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.