You are here

protected function ContentTranslationTestBase::getTranslatorPermissions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/content_translation/src/Tests/ContentTranslationTestBase.php \Drupal\content_translation\Tests\ContentTranslationTestBase::getTranslatorPermissions()

Returns an array of permissions needed for the translator.

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

... See full list

10 methods override ContentTranslationTestBase::getTranslatorPermissions()
BlockContentTranslationUITest::getTranslatorPermissions in core/modules/block_content/src/Tests/BlockContentTranslationUITest.php
Returns an array of permissions needed for the translator.
CommentTranslationUITest::getTranslatorPermissions in core/modules/comment/src/Tests/CommentTranslationUITest.php
Returns an array of permissions needed for the translator.
ContentTestTranslationUITest::getTranslatorPermissions in core/modules/content_translation/src/Tests/ContentTestTranslationUITest.php
Returns an array of permissions needed for the translator.
ContentTranslationWorkflowsTest::getTranslatorPermissions in core/modules/content_translation/src/Tests/ContentTranslationWorkflowsTest.php
Returns an array of permissions needed for the translator.
MenuLinkContentTranslationUITest::getTranslatorPermissions in core/modules/menu_link_content/src/Tests/MenuLinkContentTranslationUITest.php
Returns an array of permissions needed for the translator.

... See full list

File

core/modules/content_translation/src/Tests/ContentTranslationTestBase.php, line 118
Contains \Drupal\content_translation\Tests\ContentTranslationTestBase.

Class

ContentTranslationTestBase
Base class for content translation tests.

Namespace

Drupal\content_translation\Tests

Code

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