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