You are here

protected function ContentTranslationWorkflowsTest::getTranslatorPermissions in Drupal 8

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

Returns an array of permissions needed for the translator.

Overrides ContentTranslationTestBase::getTranslatorPermissions

File

core/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php, line 47

Class

ContentTranslationWorkflowsTest
Tests the content translation workflows for the test entity.

Namespace

Drupal\Tests\content_translation\Functional

Code

protected function getTranslatorPermissions() {
  $permissions = parent::getTranslatorPermissions();
  $permissions[] = 'view test entity';
  return $permissions;
}