You are here

protected function ResourceTestBase::getEditorialPermissions in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\jsonapi\Functional\ResourceTestBase::getEditorialPermissions()
  2. 9 core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\jsonapi\Functional\ResourceTestBase::getEditorialPermissions()

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

Return value

string[] An array of permission names.

File

core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php, line 3365

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",
  ];
}