You are here

protected function ContentModerationWorkbenchEmailTest::getEditorPermissions in Workbench Email 8

Same name and namespace in other branches
  1. 2.x tests/src/Functional/ContentModerationWorkbenchEmailTest.php \Drupal\Tests\workbench_email\Functional\ContentModerationWorkbenchEmailTest::getEditorPermissions()

Gets editor permissions.

Return value

array Permission names.

Overrides WorkbenchEmailTestBase::getEditorPermissions

File

tests/src/Functional/ContentModerationWorkbenchEmailTest.php, line 141

Class

ContentModerationWorkbenchEmailTest
Defines a class for testing workbench email with content moderation.

Namespace

Drupal\Tests\workbench_email\Functional

Code

protected function getEditorPermissions() {
  return [
    'view any unpublished content',
    'access content',
    'edit any test content',
    'create test content',
    'view test revisions',
    'edit any another content',
    'create another content',
    'view another revisions',
    'use editorial transition draft_needs_review',
    'use editorial transition create_new_draft',
  ];
}