protected function NodeHalJsonAnonTest::getNormalizedPostEntity in Drupal 8
Same name and namespace in other branches
- 9 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\HalCode
protected function getNormalizedPostEntity() {
return parent::getNormalizedPostEntity() + [
'_links' => [
'type' => [
'href' => $this->baseUrl . '/rest/type/node/camelids',
],
],
];
}