You are here

protected function ContentTranslationTestBase::getTranslatorPermissions in Drupal 8

Same name in this branch
  1. 8 core/modules/content_translation/src/Tests/ContentTranslationTestBase.php \Drupal\content_translation\Tests\ContentTranslationTestBase::getTranslatorPermissions()
  2. 8 core/modules/content_translation/tests/src/Functional/ContentTranslationTestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationTestBase::getTranslatorPermissions()
Same name and namespace in other branches
  1. 9 core/modules/content_translation/tests/src/Functional/ContentTranslationTestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationTestBase::getTranslatorPermissions()
  2. 10 core/modules/content_translation/tests/src/Functional/ContentTranslationTestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationTestBase::getTranslatorPermissions()

Returns an array of permissions needed for the translator.

17 calls to ContentTranslationTestBase::getTranslatorPermissions()
BlockContentTranslationUITest::getTranslatorPermissions in core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php
Returns an array of permissions needed for the translator.
CommentTranslationUITest::getTranslatorPermissions in core/modules/comment/tests/src/Functional/CommentTranslationUITest.php
Returns an array of permissions needed for the translator.
CommentTranslationUITest::testTranslateLinkCommentAdminPage in core/modules/comment/tests/src/Functional/CommentTranslationUITest.php
Tests translate link on comment content admin page.
ContentTestTranslationUITest::getTranslatorPermissions in core/modules/content_translation/tests/src/Functional/ContentTestTranslationUITest.php
Returns an array of permissions needed for the translator.
ContentTranslationPendingRevisionTestBase::getTranslatorPermissions in core/modules/content_translation/tests/src/Functional/ContentTranslationPendingRevisionTestBase.php
Returns an array of permissions needed for the translator.

... See full list

13 methods override ContentTranslationTestBase::getTranslatorPermissions()
BlockContentTranslationUITest::getTranslatorPermissions in core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php
Returns an array of permissions needed for the translator.
CommentTranslationUITest::getTranslatorPermissions in core/modules/comment/tests/src/Functional/CommentTranslationUITest.php
Returns an array of permissions needed for the translator.
ContentTestTranslationUITest::getTranslatorPermissions in core/modules/content_translation/tests/src/Functional/ContentTestTranslationUITest.php
Returns an array of permissions needed for the translator.
ContentTranslationPendingRevisionTestBase::getTranslatorPermissions in core/modules/content_translation/tests/src/Functional/ContentTranslationPendingRevisionTestBase.php
Returns an array of permissions needed for the translator.
ContentTranslationWorkflowsTest::getTranslatorPermissions in core/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php
Returns an array of permissions needed for the translator.

... See full list

File

core/modules/content_translation/tests/src/Functional/ContentTranslationTestBase.php, line 116

Class

ContentTranslationTestBase
Base class for content translation tests.

Namespace

Drupal\Tests\content_translation\Functional

Code

protected function getTranslatorPermissions() {
  return array_filter([
    $this
      ->getTranslatePermission(),
    'create content translations',
    'update content translations',
    'delete content translations',
  ]);
}