You are here

protected static function NodeTest::getIncludePermissions in JSON:API 8.2

Same name and namespace in other branches
  1. 8 tests/src/Functional/NodeTest.php \Drupal\Tests\jsonapi\Functional\NodeTest::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.

Overrides ResourceTestBase::getIncludePermissions

File

tests/src/Functional/NodeTest.php, line 356

Class

NodeTest
JSON:API integration test for the "Node" content entity type.

Namespace

Drupal\Tests\jsonapi\Functional

Code

protected static function getIncludePermissions() {
  return [
    'uid.node_type' => [
      'administer users',
    ],
    'uid.roles' => [
      'administer permissions',
    ],
  ];
}