You are here

abstract protected function ResourceTestBase::getPostDocument in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\jsonapi\Functional\ResourceTestBase::getPostDocument()
  2. 9 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()

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\Functional

Code

protected abstract function getPostDocument();