You are here

protected function NodeResourceTestBase::getNormalizedPostEntity in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/node/tests/src/Functional/Rest/NodeResourceTestBase.php \Drupal\Tests\node\Functional\Rest\NodeResourceTestBase::getNormalizedPostEntity()
  2. 9 core/modules/node/tests/src/Functional/Rest/NodeResourceTestBase.php \Drupal\Tests\node\Functional\Rest\NodeResourceTestBase::getNormalizedPostEntity()

File

core/modules/node/tests/src/Functional/Rest/NodeResourceTestBase.php, line 199

Class

NodeResourceTestBase

Namespace

Drupal\Tests\node\Functional\Rest

Code

protected function getNormalizedPostEntity() {
  return [
    'type' => [
      [
        'target_id' => 'camelids',
      ],
    ],
    'title' => [
      [
        'value' => 'Dramallama',
      ],
    ],
  ];
}