abstract protected function ResourceTestBase::getPostDocument in Drupal 9
Same name and namespace in other branches
- 8 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.
49 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.
File
- core/
modules/ jsonapi/ tests/ src/ Functional/ ResourceTestBase.php, line 454
Class
- ResourceTestBase
- Subclass this for every JSON:API resource type.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
protected abstract function getPostDocument();