63 calls to ResourceTestBase::grantPermissionsToTestedRole()

ActionResourceTestBase::setUpAuthorization in core/modules/system/tests/src/Functional/Rest/ActionResourceTestBase.php
Sets up the necessary authorization.
BaseFieldOverrideResourceTestBase::setUpAuthorization in core/tests/Drupal/FunctionalTests/Rest/BaseFieldOverrideResourceTestBase.php
Sets up the necessary authorization.
BlockContentResourceTestBase::setUpAuthorization in core/modules/block_content/tests/src/Functional/Rest/BlockContentResourceTestBase.php
Sets up the necessary authorization.
BlockContentTypeResourceTestBase::setUpAuthorization in core/modules/block_content/tests/src/Functional/Rest/BlockContentTypeResourceTestBase.php
Sets up the necessary authorization.
BlockResourceTestBase::setUpAuthorization in core/modules/block/tests/src/Functional/Rest/BlockResourceTestBase.php
Sets up the necessary authorization.
CommentResourceTestBase::setUpAuthorization in core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php
Sets up the necessary authorization.
CommentResourceTestBase::testPostSkipCommentApproval in core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php
Tests POSTing a comment with and without 'skip comment approval'
CommentTypeResourceTestBase::setUpAuthorization in core/modules/comment/tests/src/Functional/Rest/CommentTypeResourceTestBase.php
Sets up the necessary authorization.
ConfigTestResourceTestBase::setUpAuthorization in core/modules/config/tests/config_test/tests/src/Functional/Rest/ConfigTestResourceTestBase.php
Sets up the necessary authorization.
ConfigurableLanguageResourceTestBase::setUpAuthorization in core/modules/language/tests/src/Functional/Rest/ConfigurableLanguageResourceTestBase.php
Sets up the necessary authorization.
ContactFormResourceTestBase::setUpAuthorization in core/modules/contact/tests/src/Functional/Rest/ContactFormResourceTestBase.php
Sets up the necessary authorization.
ContentLanguageSettingsResourceTestBase::setUpAuthorization in core/modules/language/tests/src/Functional/Rest/ContentLanguageSettingsResourceTestBase.php
Sets up the necessary authorization.
DateFormatResourceTestBase::setUpAuthorization in core/tests/Drupal/FunctionalTests/Rest/DateFormatResourceTestBase.php
Sets up the necessary authorization.
DbLogResourceTest::setUpAuthorization in core/modules/dblog/tests/src/Functional/DbLogResourceTest.php
Sets up the necessary authorization.
EditorResourceTestBase::setUpAuthorization in core/modules/editor/tests/src/Functional/Rest/EditorResourceTestBase.php
Sets up the necessary authorization.
EntityFormDisplayResourceTestBase::setUpAuthorization in core/tests/Drupal/FunctionalTests/Rest/EntityFormDisplayResourceTestBase.php
Sets up the necessary authorization.
EntityFormModeResourceTestBase::setUpAuthorization in core/tests/Drupal/FunctionalTests/Rest/EntityFormModeResourceTestBase.php
Sets up the necessary authorization.
EntityResourceTestBase::testDelete in core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php
Tests a DELETE request for an entity, plus edge cases to ensure good DX.
EntityResourceTestBase::testGet in core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php
Test a GET request for an entity, plus edge cases to ensure good DX.
EntityResourceTestBase::testPatch in core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php
Tests a PATCH request for an entity, plus edge cases to ensure good DX.
EntityResourceTestBase::testPost in core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php
Tests a POST request for an entity, plus edge cases to ensure good DX.
EntityTestBundleResourceTestBase::setUpAuthorization in core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestBundleResourceTestBase.php
Sets up the necessary authorization.
EntityTestLabelResourceTestBase::setUpAuthorization in core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestLabelResourceTestBase.php
Sets up the necessary authorization.
EntityTestMapFieldResourceTestBase::setUpAuthorization in core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestMapFieldResourceTestBase.php
Sets up the necessary authorization.
EntityTestResourceTestBase::setUpAuthorization in core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestResourceTestBase.php
Sets up the necessary authorization.
EntityTestTextItemNormalizerTest::setUpAuthorization in core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestTextItemNormalizerTest.php
Sets up the necessary authorization.
EntityViewDisplayResourceTestBase::setUpAuthorization in core/tests/Drupal/FunctionalTests/Rest/EntityViewDisplayResourceTestBase.php
Sets up the necessary authorization.
EntityViewModeResourceTestBase::setUpAuthorization in core/tests/Drupal/FunctionalTests/Rest/EntityViewModeResourceTestBase.php
Sets up the necessary authorization.
FeedResourceTestBase::setUpAuthorization in core/modules/aggregator/tests/src/Functional/Rest/FeedResourceTestBase.php
Sets up the necessary authorization.
FieldConfigResourceTestBase::setUpAuthorization in core/modules/field/tests/src/Functional/Rest/FieldConfigResourceTestBase.php
Sets up the necessary authorization.
FieldStorageConfigResourceTestBase::setUpAuthorization in core/modules/field/tests/src/Functional/Rest/FieldStorageConfigResourceTestBase.php
Sets up the necessary authorization.
FileResourceTestBase::grantPermissionsToTestedRole in core/modules/file/tests/src/Functional/Rest/FileResourceTestBase.php
Grants permissions to the tested role: anonymous or authenticated.
FileUploadResourceTestBase::setUpAuthorization in core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php
Sets up the necessary authorization.
FilterFormatResourceTestBase::setUpAuthorization in core/modules/filter/tests/src/Functional/Rest/FilterFormatResourceTestBase.php
Sets up the necessary authorization.
ImageStyleResourceTestBase::setUpAuthorization in core/modules/image/tests/src/Functional/Rest/ImageStyleResourceTestBase.php
Sets up the necessary authorization.
ItemResourceTestBase::setUpAuthorization in core/modules/aggregator/tests/src/Functional/Rest/ItemResourceTestBase.php
Sets up the necessary authorization.
MediaResourceTestBase::setUpAuthorization in core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php
Sets up the necessary authorization.
MediaResourceTestBase::uploadFile in core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php
This duplicates some of the 'file_upload' REST resource plugin test coverage, to be able to test it on a concrete use case.
MediaTypeResourceTestBase::setUpAuthorization in core/modules/media/tests/src/Functional/Rest/MediaTypeResourceTestBase.php
Sets up the necessary authorization.
MenuLinkContentResourceTestBase::setUpAuthorization in core/modules/menu_link_content/tests/src/Functional/Rest/MenuLinkContentResourceTestBase.php
Sets up the necessary authorization.
MenuResourceTestBase::setUpAuthorization in core/modules/system/tests/src/Functional/Rest/MenuResourceTestBase.php
Sets up the necessary authorization.
MessageResourceTestBase::setUpAuthorization in core/modules/contact/tests/src/Functional/Rest/MessageResourceTestBase.php
Sets up the necessary authorization.
ModeratedNodeResourceTestBase::setUpAuthorization in core/modules/rest/tests/src/Functional/EntityResource/ModeratedNode/ModeratedNodeResourceTestBase.php
Sets up the necessary authorization.
NodeResourceTestBase::setUpAuthorization in core/modules/node/tests/src/Functional/Rest/NodeResourceTestBase.php
Sets up the necessary authorization.
NodeResourceTestBase::testPatchPath in core/modules/node/tests/src/Functional/Rest/NodeResourceTestBase.php
Tests PATCHing a node's path with and without 'create url aliases'.
NodeTypeResourceTestBase::setUpAuthorization in core/modules/node/tests/src/Functional/Rest/NodeTypeResourceTestBase.php
Sets up the necessary authorization.
PathAliasResourceTestBase::setUpAuthorization in core/modules/path_alias/tests/src/Functional/Rest/PathAliasResourceTestBase.php
Sets up the necessary authorization.
RdfMappingResourceTestBase::setUpAuthorization in core/modules/rdf/tests/src/Functional/Rest/RdfMappingResourceTestBase.php
Sets up the necessary authorization.
ResponsiveImageStyleResourceTestBase::setUpAuthorization in core/modules/responsive_image/tests/src/Functional/Rest/ResponsiveImageStyleResourceTestBase.php
Sets up the necessary authorization.
RestJsonApiUnsupported::setUpAuthorization in core/modules/jsonapi/tests/src/Functional/RestJsonApiUnsupported.php
Sets up the necessary authorization.
RestResourceConfigResourceTestBase::setUpAuthorization in core/modules/rest/tests/src/Functional/Rest/RestResourceConfigResourceTestBase.php
Sets up the necessary authorization.
RoleResourceTestBase::setUpAuthorization in core/modules/user/tests/src/Functional/Rest/RoleResourceTestBase.php
Sets up the necessary authorization.
SearchPageResourceTestBase::setUpAuthorization in core/modules/search/tests/src/Functional/Rest/SearchPageResourceTestBase.php
Sets up the necessary authorization.
ShortcutResourceTestBase::setUpAuthorization in core/modules/shortcut/tests/src/Functional/Rest/ShortcutResourceTestBase.php
Sets up the necessary authorization.
ShortcutSetResourceTestBase::setUpAuthorization in core/modules/shortcut/tests/src/Functional/Rest/ShortcutSetResourceTestBase.php
Sets up the necessary authorization.
TermResourceTestBase::setUpAuthorization in core/modules/taxonomy/tests/src/Functional/Rest/TermResourceTestBase.php
Sets up the necessary authorization.
TourResourceTestBase::setUpAuthorization in core/modules/tour/tests/src/Functional/Rest/TourResourceTestBase.php
Sets up the necessary authorization.
UserResourceTestBase::setUpAuthorization in core/modules/user/tests/src/Functional/Rest/UserResourceTestBase.php
Sets up the necessary authorization.
UserResourceTestBase::testPatchDxForSecuritySensitiveBaseFields in core/modules/user/tests/src/Functional/Rest/UserResourceTestBase.php
Tests PATCHing security-sensitive base fields of the logged in account.
ViewResourceTestBase::setUpAuthorization in core/modules/views/tests/src/Functional/Rest/ViewResourceTestBase.php
Sets up the necessary authorization.
VocabularyResourceTestBase::setUpAuthorization in core/modules/taxonomy/tests/src/Functional/Rest/VocabularyResourceTestBase.php
Sets up the necessary authorization.
WorkflowResourceTestBase::setUpAuthorization in core/modules/workflows/tests/src/Functional/Rest/WorkflowResourceTestBase.php
Sets up the necessary authorization.
WorkspaceResourceTestBase::setUpAuthorization in core/modules/workspaces/tests/src/Functional/EntityResource/WorkspaceResourceTestBase.php
Sets up the necessary authorization.

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