You are here

protected function FeedHalJsonTestBase::getNormalizedPostEntity in Drupal 8

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

Returns the normalized POST entity.

Return value

array

Overrides FeedResourceTestBase::getNormalizedPostEntity

See also

::testPost

File

core/modules/aggregator/tests/src/Functional/Hal/FeedHalJsonTestBase.php, line 50

Class

FeedHalJsonTestBase

Namespace

Drupal\Tests\aggregator\Functional\Hal

Code

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