function ResourceTestBase::getIncludePermissions
Same name in other branches
- 9 core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\jsonapi\Functional\ResourceTestBase::getIncludePermissions()
- 8.9.x 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 - NodeTest::getIncludePermissions in core/
modules/ jsonapi/ tests/ src/ Functional/ NodeTest.php
File
-
core/
modules/ jsonapi/ tests/ src/ Functional/ ResourceTestBase.php, line 3385
Class
- ResourceTestBase
- Subclass this for every JSON:API resource type.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
protected static function getIncludePermissions() {
return [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.