You are here

protected function ContentModerationWorkbenchEmailTest::getApproverPermissions 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::getApproverPermissions()

Gets approver permissions.

Return value

array Permission names.

Overrides WorkbenchEmailTestBase::getApproverPermissions

File

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

Class

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

Namespace

Drupal\Tests\workbench_email\Functional

Code

protected function getApproverPermissions() {
  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 needs_review_published',
  ];
}