function CommentTranslationUITest::getTranslatorPermissions

Same name in other branches
  1. 9 core/modules/comment/tests/src/Functional/CommentTranslationUITest.php \Drupal\Tests\comment\Functional\CommentTranslationUITest::getTranslatorPermissions()
  2. 10 core/modules/comment/tests/src/Functional/CommentTranslationUITest.php \Drupal\Tests\comment\Functional\CommentTranslationUITest::getTranslatorPermissions()
  3. 11.x core/modules/comment/tests/src/Functional/CommentTranslationUITest.php \Drupal\Tests\comment\Functional\CommentTranslationUITest::getTranslatorPermissions()

Overrides ContentTranslationTestBase::getTranslatorPermissions

File

core/modules/comment/tests/src/Functional/CommentTranslationUITest.php, line 94

Class

CommentTranslationUITest
Tests the Comment Translation UI.

Namespace

Drupal\Tests\comment\Functional

Code

protected function getTranslatorPermissions() {
    return array_merge(parent::getTranslatorPermissions(), [
        'post comments',
        'administer comments',
        'access comments',
    ]);
}

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