You are here

protected function MediaHalJsonAnonTest::getNormalizedPostEntity in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/media/tests/src/Functional/Hal/MediaHalJsonAnonTest.php \Drupal\Tests\media\Functional\Hal\MediaHalJsonAnonTest::getNormalizedPostEntity()

Returns the normalized POST entity.

Return value

array

Overrides MediaResourceTestBase::getNormalizedPostEntity

See also

::testPost

File

core/modules/media/tests/src/Functional/Hal/MediaHalJsonAnonTest.php, line 215

Class

MediaHalJsonAnonTest
@group hal

Namespace

Drupal\Tests\media\Functional\Hal

Code

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