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