function WorkspaceContentModerationIntegrationTest::getAdministratorPermissions

1 call to WorkspaceContentModerationIntegrationTest::getAdministratorPermissions()
WorkspaceContentModerationIntegrationTest::setUp in core/modules/content_moderation/tests/src/Functional/WorkspaceContentModerationIntegrationTest.php
Sets the test up.

File

core/modules/content_moderation/tests/src/Functional/WorkspaceContentModerationIntegrationTest.php, line 33

Class

WorkspaceContentModerationIntegrationTest
Tests Workspaces together with Content Moderation.

Namespace

Drupal\Tests\content_moderation\Functional

Code

protected function getAdministratorPermissions() : array {
    return array_merge($this->permissions, [
        'bypass node access',
        'view any workspace',
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.