You are here

protected function NodeHalJsonAnonTest::getNormalizedPostEntity in Drupal 9

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

Returns the normalized POST entity.

Return value

array

Overrides NodeResourceTestBase::getNormalizedPostEntity

See also

::testPost

File

core/modules/node/tests/src/Functional/Hal/NodeHalJsonAnonTest.php, line 119

Class

NodeHalJsonAnonTest
@group hal

Namespace

Drupal\Tests\node\Functional\Hal

Code

protected function getNormalizedPostEntity() {
  return parent::getNormalizedPostEntity() + [
    '_links' => [
      'type' => [
        'href' => $this->baseUrl . '/rest/type/node/camelids',
      ],
    ],
  ];
}