You are here

protected function ResourceTestBase::getEditorialPermissions in JSON:API 8.2

Gets an array of permissions required to view and update any tested entity.

Return value

string[] An array of permission names.

2 calls to ResourceTestBase::getEditorialPermissions()
MediaTest::getEditorialPermissions in tests/src/Functional/MediaTest.php
Gets an array of permissions required to view and update any tested entity.
ResourceTestBase::testRevisions in tests/src/Functional/ResourceTestBase.php
Tests individual and collection revisions.
1 method overrides ResourceTestBase::getEditorialPermissions()
MediaTest::getEditorialPermissions in tests/src/Functional/MediaTest.php
Gets an array of permissions required to view and update any tested entity.

File

tests/src/Functional/ResourceTestBase.php, line 3290

Class

ResourceTestBase
Subclass this for every JSON:API resource type.

Namespace

Drupal\Tests\jsonapi\Functional

Code

protected function getEditorialPermissions() {
  return [
    'view latest version',
    "view any unpublished content",
  ];
}