You are here

protected function ContentTranslationWorkflowsTest::getEntityOwnerPermissions in Drupal 9

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

Returns an array of permissions needed for the entity owner.

1 call to ContentTranslationWorkflowsTest::getEntityOwnerPermissions()
ContentTranslationWorkflowsTest::setupUsers in core/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php
Creates and activates translator, editor and admin users.

File

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

Class

ContentTranslationWorkflowsTest
Tests the content translation workflows for the test entity.

Namespace

Drupal\Tests\content_translation\Functional

Code

protected function getEntityOwnerPermissions() {
  return [
    'edit own entity_test content',
    'translate editable entities',
    'view test entity',
    'view test entity translations',
    'view unpublished test entity translations',
  ];
}