You are here

protected static function ResourceTestBase::getIncludePermissions in Drupal 9

Same name and namespace in other branches
  1. 8 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.

2 calls to ResourceTestBase::getIncludePermissions()
ResourceTestBase::grantIncludedPermissions in core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php
Grants authorization to view includes.
ResourceTestBase::testCollection in core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php
Tests GETting a collection of resources.
2 methods override ResourceTestBase::getIncludePermissions()
CommentTest::getIncludePermissions in core/modules/jsonapi/tests/src/Functional/CommentTest.php
Authorize the user under test with additional permissions to view includes.
NodeTest::getIncludePermissions in core/modules/jsonapi/tests/src/Functional/NodeTest.php
Authorize the user under test with additional permissions to view includes.

File

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

Class

ResourceTestBase
Subclass this for every JSON:API resource type.

Namespace

Drupal\Tests\jsonapi\Functional

Code

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