You are here

protected static function NodeTest::getIncludePermissions in Drupal 9

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

core/modules/jsonapi/tests/src/Functional/NodeTest.php, line 431

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