You are here

abstract protected function ResourceTestBase::getPostDocument in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\jsonapi\Functional\ResourceTestBase::getPostDocument()
  2. 10 core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\jsonapi\Functional\ResourceTestBase::getPostDocument()

Returns the JSON:API POST document.

Return value

array A JSON:API request document.

See also

::testPostIndividual()

4 calls to ResourceTestBase::getPostDocument()
ResourceTestBase::getModifiedEntityForPostTesting in core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php
Gets the normalized POST entity with random values for its unique fields.
ResourceTestBase::getPatchDocument in core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php
Returns the JSON:API PATCH document.
ResourceTestBase::testPatchIndividual in core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php
Tests PATCHing an individual resource, plus edge cases to ensure good DX.
ResourceTestBase::testPostIndividual in core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php
Tests POSTing an individual resource, plus edge cases to ensure good DX.
48 methods override ResourceTestBase::getPostDocument()
ActionTest::getPostDocument in core/modules/jsonapi/tests/src/Functional/ActionTest.php
Returns the JSON:API POST document.
BaseFieldOverrideTest::getPostDocument in core/modules/jsonapi/tests/src/Functional/BaseFieldOverrideTest.php
Returns the JSON:API POST document.
BlockContentTest::getPostDocument in core/modules/jsonapi/tests/src/Functional/BlockContentTest.php
Returns the JSON:API POST document.
BlockContentTypeTest::getPostDocument in core/modules/jsonapi/tests/src/Functional/BlockContentTypeTest.php
Returns the JSON:API POST document.
BlockTest::getPostDocument in core/modules/jsonapi/tests/src/Functional/BlockTest.php
Returns the JSON:API POST document.

... See full list

File

core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php, line 452

Class

ResourceTestBase
Subclass this for every JSON:API resource type.

Namespace

Drupal\Tests\jsonapi\Functional

Code

protected abstract function getPostDocument();