abstract protected function ResourceTestBase::getPostDocument in JSON:API 8
Same name and namespace in other branches
- 8.2 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()
3 calls to ResourceTestBase::getPostDocument()
- ResourceTestBase::getModifiedEntityForPostTesting in tests/
src/ Functional/ ResourceTestBase.php - Gets the normalized POST entity with random values for its unique fields.
- ResourceTestBase::getPatchDocument in tests/
src/ Functional/ ResourceTestBase.php - Returns the JSON API PATCH document.
- ResourceTestBase::testPostIndividual in tests/
src/ Functional/ ResourceTestBase.php - Tests POSTing an individual resource, plus edge cases to ensure good DX.
45 methods override ResourceTestBase::getPostDocument()
- ActionTest::getPostDocument in tests/
src/ Functional/ ActionTest.php - Returns the JSON API POST document.
- BaseFieldOverrideTest::getPostDocument in tests/
src/ Functional/ BaseFieldOverrideTest.php - Returns the JSON API POST document.
- BlockContentTest::getPostDocument in tests/
src/ Functional/ BlockContentTest.php - Returns the JSON API POST document.
- BlockContentTypeTest::getPostDocument in tests/
src/ Functional/ BlockContentTypeTest.php - Returns the JSON API POST document.
- BlockTest::getPostDocument in tests/
src/ Functional/ BlockTest.php - Returns the JSON API POST document.
File
- tests/
src/ Functional/ ResourceTestBase.php, line 395
Class
- ResourceTestBase
- Subclass this for every JSON API resource type.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
protected abstract function getPostDocument();