protected function MessageHalJsonAnonTest::getNormalizedPostEntity in Drupal 9
Same name and namespace in other branches
- 8 core/modules/contact/tests/src/Functional/Hal/MessageHalJsonAnonTest.php \Drupal\Tests\contact\Functional\Hal\MessageHalJsonAnonTest::getNormalizedPostEntity()
Returns the normalized POST entity.
Return value
array
Overrides MessageResourceTestBase::getNormalizedPostEntity
See also
::testPost
File
- core/
modules/ contact/ tests/ src/ Functional/ Hal/ MessageHalJsonAnonTest.php, line 40
Class
- MessageHalJsonAnonTest
- @group hal
Namespace
Drupal\Tests\contact\Functional\HalCode
protected function getNormalizedPostEntity() {
return parent::getNormalizedPostEntity() + [
'_links' => [
'type' => [
'href' => $this->baseUrl . '/rest/type/contact_message/camelids',
],
],
];
}