You are here

protected function NodeTest::getPostDocument in Drupal 10

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

File

core/modules/jsonapi/tests/src/Functional/NodeTest.php, line 246

Class

NodeTest
JSON:API integration test for the "Node" content entity type.

Namespace

Drupal\Tests\jsonapi\Functional

Code

protected function getPostDocument() {
  return [
    'data' => [
      'type' => 'node--camelids',
      'attributes' => [
        'title' => 'Dramallama',
      ],
    ],
  ];
}