protected function EntityTestMapFieldTest::getPostDocument in JSON:API 8.2
Returns the JSON:API POST document.
Return value
array A JSON:API request document.
Overrides ResourceTestBase::getPostDocument
See also
::testPostIndividual()
File
- tests/
src/ Functional/ EntityTestMapFieldTest.php, line 135
Class
- EntityTestMapFieldTest
- JSON:API integration test for the "EntityTestMapField" content entity type.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
protected function getPostDocument() {
return [
'data' => [
'type' => 'entity_test_map_field--entity_test_map_field',
'attributes' => [
'name' => 'Dramallama',
'data' => static::$mapValue,
],
],
];
}