protected static function NodeTest::getIncludePermissions in Drupal 8
Same name and namespace in other branches
- 9 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 422
Class
- NodeTest
- JSON:API integration test for the "Node" content entity type.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
protected static function getIncludePermissions() {
return [
'uid.node_type' => [
'administer users',
],
'uid.roles' => [
'administer permissions',
],
];
}