You are here

protected function CommentBlockTest::setUp in Drupal 8

Same name and namespace 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()

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