You are here

protected function CommentCSSTest::setUp in Drupal 8

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

Overrides CommentTestBase::setUp

File

core/modules/comment/tests/src/Functional/CommentCSSTest.php, line 25

Class

CommentCSSTest
Tests CSS classes on comments.

Namespace

Drupal\Tests\comment\Functional

Code

protected function setUp() {
  parent::setUp();

  // Allow anonymous users to see comments.
  user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, [
    'access comments',
    'access content',
  ]);
}