You are here

protected static function ResourceTestBase::getIncludePermissions 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::getIncludePermissions()
  2. 9 core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\jsonapi\Functional\ResourceTestBase::getIncludePermissions()

Authorize the user under test with additional permissions to view includes.

Return value

array An array of special permissions to be granted for certain relationship paths where the keys are relationships paths and values are an array of permissions.

File

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

Class

ResourceTestBase
Subclass this for every JSON:API resource type.

Namespace

Drupal\Tests\jsonapi\Functional

Code

protected static function getIncludePermissions() {
  return [];
}