You are here

protected function MenuLinkContentHalJsonAnonTest::getNormalizedPostEntity in Drupal 9

Same name and namespace in other branches
  1. 8 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\Hal

Code

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