66 calls to ApiRequestTrait::makeApiRequest()

CommentExtrasTest::testPostIndividualDxWithoutCriticalBaseFields in core/modules/jsonapi/tests/src/Functional/CommentExtrasTest.php
Tests POSTing a comment without critical base fields.
CommentExtrasTest::testPostIndividualSkipCommentApproval in core/modules/jsonapi/tests/src/Functional/CommentExtrasTest.php
Tests POSTing a comment with and without 'skip comment approval'.
CommentResourceTestBase::testPostDxWithoutCriticalBaseFields in core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php
Tests POSTing a comment without critical base fields.
CommentResourceTestBase::testPostSkipCommentApproval in core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php
Tests POSTing a comment with and without 'skip comment approval'.
CommentTest::testCollectionFilterAccess in core/modules/jsonapi/tests/src/Functional/CommentTest.php
ConfigurableLanguageResourceTestBase::testGetDefaultConfig in core/modules/language/tests/src/Functional/Rest/ConfigurableLanguageResourceTestBase.php
Tests a GET request for a default config entity, which has a _core key.
ConfigurableLanguageTest::testGetIndividualDefaultConfig in core/modules/jsonapi/tests/src/Functional/ConfigurableLanguageTest.php
Tests a GET request for a default config entity, which has a _core key.
DbLogResourceTest::testWatchdog in core/modules/dblog/tests/src/Functional/DbLogResourceTest.php
Writes a log messages and retrieves it via the REST API.
EntityResourceTestBase::assertNormalizationEdgeCases in core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php
Asserts normalization-specific edge cases.
EntityResourceTestBase::assertResourceNotAvailable in core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php
Asserts that a resource is unavailable: 404, 406 if it has canonical route.
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
Tests 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.
EntityTestDateOnlyTest::assertNormalizationEdgeCases in core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDateOnlyTest.php
Asserts normalization-specific edge cases.
EntityTestDateRangeTest::assertNormalizationEdgeCases in core/modules/datetime_range/tests/src/Functional/EntityResource/EntityTest/EntityTestDateRangeTest.php
Asserts normalization-specific edge cases.
EntityTestDatetimeTest::assertNormalizationEdgeCases in core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDatetimeTest.php
Asserts normalization-specific edge cases.
EntityTestTextItemNormalizerTest::testGetWithFormat in core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestTextItemNormalizerTest.php
Tests GETting an entity with the test text field set to a specific format.
EntryPointTest::testEntryPoint in core/modules/jsonapi/tests/src/Functional/EntryPointTest.php
Test GET to the entry point.
FileTest::testCollectionFilterAccess in core/modules/jsonapi/tests/src/Functional/FileTest.php
FileUploadResourceTestBase::fileRequest in core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php
Performs a file upload request. Wraps the Guzzle HTTP client.
FileUploadResourceTestBase::testPostFileUpload in core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php
Tests using the file upload POST route.
FileUploadTest::fileRequest in core/modules/jsonapi/tests/src/Functional/FileUploadTest.php
Performs a file upload request. Wraps the Guzzle HTTP client.
FileUploadTest::testPostFileUpload in core/modules/jsonapi/tests/src/Functional/FileUploadTest.php
Tests using the file upload POST route; needs second request to "use" file.
FileUploadTest::testPostFileUploadAndUseInSingleRequest in core/modules/jsonapi/tests/src/Functional/FileUploadTest.php
Tests using the 'file upload and "use" file in single request" POST route.
ImageUploadTest::uploadRequest in core/modules/ckeditor5/tests/src/Functional/ImageUploadTest.php
Make upload request to a controller.
LayoutRestTestBase::request in core/modules/layout_builder/tests/src/Functional/Rest/LayoutRestTestBase.php
Performs an HTTP request. Wraps the Guzzle HTTP client.
LinksetControllerTestBase::doRequest in core/modules/system/tests/src/Functional/Menu/LinksetControllerTestBase.php
Sends a request to the kernel and makes basic response assertions.
MediaResourceTestBase::uploadFile in core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php
Tests the 'file_upload' REST resource plugin.
MenuLinkContentTest::testLinkOptionsSerialization in core/modules/jsonapi/tests/src/Functional/MenuLinkContentTest.php
Tests requests using a serialized field item property.
MessageTest::testCollection in core/modules/contact/tests/src/Functional/Jsonapi/MessageTest.php
Tests GETting a collection of resources.
NodeResourceTestBase::testPatchPath in core/modules/node/tests/src/Functional/Rest/NodeResourceTestBase.php
Tests PATCHing a node's path with and without 'create url aliases'.
NodeTest::assertCacheableNormalizations in core/modules/jsonapi/tests/src/Functional/NodeTest.php
Asserts that normalizations are cached in an incremental way.
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.
ResourceTestBase::doTestDeleteIndividual in core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php
Tests DELETEing an individual resource, plus edge cases to ensure good DX.
ResourceTestBase::doTestIncluded in core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php
Tests included resources.
ResourceTestBase::doTestPatchIndividual in core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php
Tests PATCHing an individual resource, plus edge cases to ensure good DX.
ResourceTestBase::doTestPostIndividual in core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php
Tests POSTing an individual resource, plus edge cases to ensure good DX.
ResourceTestBase::doTestRelationshipMutation in core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php
Performs one round of relationship POST, PATCH and DELETE route testing.
ResourceTestBase::doTestSparseFieldSets in core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php
Tests sparse field sets.
ResourceTestBase::testCollection in core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php
Tests GETting a collection of resources.
ResourceTestBase::testGetIndividual in core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php
Tests GETting an individual resource, plus edge cases to ensure good DX.
ResourceTestBase::testRevisions in core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php
Tests individual and collection revisions.
RestJsonApiUnsupportedTest::testApiJsonNotSupportedInRest in core/modules/jsonapi/tests/src/Functional/RestJsonApiUnsupportedTest.php
Deploying a REST resource using api_json format results in 400 responses.
ShortcutTest::testCollectionFilterAccess in core/modules/jsonapi/tests/src/Functional/ShortcutTest.php
TermResourceTestBase::testGetTermWithParent in core/modules/taxonomy/tests/src/Functional/Rest/TermResourceTestBase.php
Tests GETting a term with a parent term other than the default <root> (0).
TermResourceTestBase::testPatchPath in core/modules/taxonomy/tests/src/Functional/Rest/TermResourceTestBase.php
Tests PATCHing a term's path.
TermTest::testGetIndividualTermWithParent in core/modules/jsonapi/tests/src/Functional/TermTest.php
Tests GETting a term with a parent term other than the default <root> (0).
TermTest::testPatchPath in core/modules/jsonapi/tests/src/Functional/TermTest.php
Tests PATCHing a term's path.
UserRegistrationRestTest::registerRequest in core/modules/user/tests/src/Functional/UserRegistrationRestTest.php
Make a REST user registration request.
UserResourceTestBase::assertRpcLogin in core/modules/user/tests/src/Functional/Rest/UserResourceTestBase.php
Verifies that logging in with the given username and password works.
UserResourceTestBase::testPatchDxForSecuritySensitiveBaseFields in core/modules/user/tests/src/Functional/Rest/UserResourceTestBase.php
Tests PATCHing security-sensitive base fields of the logged in account.
UserResourceTestBase::testPatchSecurityOtherUser in core/modules/user/tests/src/Functional/Rest/UserResourceTestBase.php
Tests PATCHing security-sensitive base fields to change other users.
UserTest::assertRpcLogin in core/modules/jsonapi/tests/src/Functional/UserTest.php
Verifies that logging in with the given username and password works.
UserTest::sendDeleteRequestForUser in core/modules/jsonapi/tests/src/Functional/UserTest.php
UserTest::testCollectionContainsAnonymousUser in core/modules/jsonapi/tests/src/Functional/UserTest.php
Tests that the collection contains the anonymous user.
UserTest::testCollectionFilterAccess in core/modules/jsonapi/tests/src/Functional/UserTest.php
UserTest::testDeleteRespectsUserCancelDelete in core/modules/jsonapi/tests/src/Functional/UserTest.php
Tests if JSON:API respects user.settings.cancel_method: user_cancel_delete.
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::testPatchSecurityOtherUser in core/modules/jsonapi/tests/src/Functional/UserTest.php
Tests PATCHing security-sensitive base fields to change other users.
UserTest::testQueryInvolvingRoles in core/modules/jsonapi/tests/src/Functional/UserTest.php
Tests good error DX when trying to filter users by role.
UserTest::testResaveAccountName in core/modules/jsonapi/tests/src/Functional/UserTest.php
Tests users with altered display names.

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