You are here

protected function MessageHalJsonAnonTest::getNormalizedPostEntity in Drupal 9

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

Code

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