You are here

protected static function ResourceTestBase::getIncludePermissions in JSON:API 8

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

1 call to ResourceTestBase::getIncludePermissions()
ResourceTestBase::doTestIncluded in tests/src/Functional/ResourceTestBase.php
Tests included resources.
2 methods override ResourceTestBase::getIncludePermissions()
CommentTest::getIncludePermissions in tests/src/Functional/CommentTest.php
Authorize the user under test with additional permissions to view includes.
NodeTest::getIncludePermissions in tests/src/Functional/NodeTest.php
Authorize the user under test with additional permissions to view includes.

File

tests/src/Functional/ResourceTestBase.php, line 2752

Class

ResourceTestBase
Subclass this for every JSON API resource type.

Namespace

Drupal\Tests\jsonapi\Functional

Code

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