protected function TermHalJsonAnonTest::getNormalizedPostEntity in Drupal 9
Same name and namespace in other branches
- 8 core/modules/taxonomy/tests/src/Functional/Hal/TermHalJsonAnonTest.php \Drupal\Tests\taxonomy\Functional\Hal\TermHalJsonAnonTest::getNormalizedPostEntity()
Returns the normalized POST entity.
Return value
array
Overrides TermResourceTestBase::getNormalizedPostEntity
See also
::testPost
File
- core/
modules/ taxonomy/ tests/ src/ Functional/ Hal/ TermHalJsonAnonTest.php, line 176
Class
- TermHalJsonAnonTest
- @group hal
Namespace
Drupal\Tests\taxonomy\Functional\HalCode
protected function getNormalizedPostEntity() {
return parent::getNormalizedPostEntity() + [
'_links' => [
'type' => [
'href' => $this->baseUrl . '/rest/type/taxonomy_term/camelids',
],
],
];
}