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