protected static function ResourceTestBase::getIncludePermissions in Drupal 8
Same name and namespace in other branches
- 9 core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\jsonapi\Functional\ResourceTestBase::getIncludePermissions()
- 10 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 3276
Class
- ResourceTestBase
- Subclass this for every JSON:API resource type.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
protected static function getIncludePermissions() {
return [];
}