66 calls to ResourceTestBase::grantPermissionsToTestedRole()

ActionTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/ActionTest.php
Sets up the necessary authorization.
BaseFieldOverrideTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/BaseFieldOverrideTest.php
Sets up the necessary authorization.
BlockContentTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/BlockContentTest.php
Sets up the necessary authorization.
BlockContentTypeTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/BlockContentTypeTest.php
Sets up the necessary authorization.
CommentTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/CommentTest.php
Sets up the necessary authorization.
CommentTest::testPostIndividualSkipCommentApproval in core/modules/jsonapi/tests/src/Functional/CommentTest.php
Tests POSTing a comment with and without 'skip comment approval'.
CommentTypeTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/CommentTypeTest.php
Sets up the necessary authorization.
ConfigTestTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/ConfigTestTest.php
Sets up the necessary authorization.
ConfigurableLanguageTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/ConfigurableLanguageTest.php
Sets up the necessary authorization.
ContactFormTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/ContactFormTest.php
Sets up the necessary authorization.
ContentLanguageSettingsTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/ContentLanguageSettingsTest.php
Sets up the necessary authorization.
DateFormatTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/DateFormatTest.php
Sets up the necessary authorization.
EditorTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/EditorTest.php
Sets up the necessary authorization.
EntityFormDisplayTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/EntityFormDisplayTest.php
Sets up the necessary authorization.
EntityFormModeTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/EntityFormModeTest.php
Sets up the necessary authorization.
EntityTestMapFieldTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/EntityTestMapFieldTest.php
Sets up the necessary authorization.
EntityTestTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/EntityTestTest.php
Sets up the necessary authorization.
EntityViewDisplayTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/EntityViewDisplayTest.php
Sets up the necessary authorization.
EntityViewModeTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/EntityViewModeTest.php
Sets up the necessary authorization.
FeedTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/FeedTest.php
Sets up the necessary authorization.
FieldConfigTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/FieldConfigTest.php
Sets up the necessary authorization.
FieldStorageConfigTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/FieldStorageConfigTest.php
Sets up the necessary authorization.
FileTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/FileTest.php
Sets up the necessary authorization.
FileUploadTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/FileUploadTest.php
Sets up the necessary authorization.
FilterFormatTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/FilterFormatTest.php
Sets up the necessary authorization.
ImageStyleTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/ImageStyleTest.php
Sets up the necessary authorization.
ItemTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/ItemTest.php
Sets up the necessary authorization.
MediaTest::doTestRelationshipMutation in core/modules/jsonapi/tests/src/Functional/MediaTest.php
@todo Remove this in https://www.drupal.org/node/2824851.
MediaTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/MediaTest.php
Sets up the necessary authorization.
MediaTest::setUpRevisionAuthorization in core/modules/jsonapi/tests/src/Functional/MediaTest.php
Sets up the necessary authorization for handling revisions.
MediaTypeTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/MediaTypeTest.php
Sets up the necessary authorization.
MenuLinkContentTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/MenuLinkContentTest.php
Sets up the necessary authorization.
MenuTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/MenuTest.php
Sets up the necessary authorization.
MessageTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/MessageTest.php
Sets up the necessary authorization.
NodeTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/NodeTest.php
Sets up the necessary authorization.
NodeTest::setUpRevisionAuthorization in core/modules/jsonapi/tests/src/Functional/NodeTest.php
Sets up the necessary authorization for handling revisions.
NodeTest::testCollectionFilterAccess in core/modules/jsonapi/tests/src/Functional/NodeTest.php
NodeTest::testGetIndividual in core/modules/jsonapi/tests/src/Functional/NodeTest.php
Tests GETting an individual resource, plus edge cases to ensure good DX.
NodeTest::testPatchPath in core/modules/jsonapi/tests/src/Functional/NodeTest.php
Tests PATCHing a node's path with and without 'create url aliases'.
NodeTest::testPostNonExistingAuthor in core/modules/jsonapi/tests/src/Functional/NodeTest.php
Creating relationships to missing resources should be 404 per JSON:API 1.1.
NodeTypeTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/NodeTypeTest.php
Sets up the necessary authorization.
PathAliasTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/PathAliasTest.php
Sets up the necessary authorization.
RdfMappingTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/RdfMappingTest.php
Sets up the necessary authorization.
ResourceTestBase::doTestSparseFieldSets in core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php
Tests sparse field sets.
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.
ResourceTestBase::testPatchIndividual in core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php
Tests PATCHing an individual resource, plus edge cases to ensure good DX.
ResourceTestBase::testRelationships in core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php
Tests CRUD of individual resource relationship data.
ResourceTestBase::testRevisions in core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php
Tests individual and collection revisions.
ResponsiveImageStyleTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/ResponsiveImageStyleTest.php
Sets up the necessary authorization.
RestResourceConfigTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/RestResourceConfigTest.php
Sets up the necessary authorization.
RoleTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/RoleTest.php
Sets up the necessary authorization.
SearchPageTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/SearchPageTest.php
Sets up the necessary authorization.
ShortcutSetTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/ShortcutSetTest.php
Sets up the necessary authorization.
ShortcutTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/ShortcutTest.php
Sets up the necessary authorization.
ShortcutTest::testCollectionFilterAccess in core/modules/jsonapi/tests/src/Functional/ShortcutTest.php
TermTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/TermTest.php
Sets up the necessary authorization.
TourTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/TourTest.php
Sets up the necessary authorization.
UserTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/UserTest.php
Sets up the necessary authorization.
UserTest::testCollectionFilterAccess in core/modules/jsonapi/tests/src/Functional/UserTest.php
UserTest::testGetMailFieldOnlyVisibleToOwner in core/modules/jsonapi/tests/src/Functional/UserTest.php
Tests GETting privacy-sensitive base fields.
UserTest::testPatchDxForSecuritySensitiveBaseFields in core/modules/jsonapi/tests/src/Functional/UserTest.php
Tests PATCHing security-sensitive base fields of the logged in account.
UserTest::testQueryInvolvingRoles in core/modules/jsonapi/tests/src/Functional/UserTest.php
Test good error DX when trying to filter users by role.
ViewTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/ViewTest.php
Sets up the necessary authorization.
VocabularyTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/VocabularyTest.php
Sets up the necessary authorization.
WorkflowTest::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/WorkflowTest.php
Sets up the necessary authorization.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.