function UserHalJsonAnonTest::getExpectedNormalizedEntity
Same name in other branches
- 9 core/modules/hal/tests/src/Functional/user/UserHalJsonAnonTest.php \Drupal\Tests\hal\Functional\user\UserHalJsonAnonTest::getExpectedNormalizedEntity()
Overrides UserResourceTestBase::getExpectedNormalizedEntity
File
-
core/
modules/ user/ tests/ src/ Functional/ Hal/ UserHalJsonAnonTest.php, line 40
Class
- UserHalJsonAnonTest
- @group hal
Namespace
Drupal\Tests\user\Functional\HalCode
protected function getExpectedNormalizedEntity() {
$default_normalization = parent::getExpectedNormalizedEntity();
$normalization = $this->applyHalFieldNormalization($default_normalization);
return $normalization + [
'_links' => [
'self' => [
'href' => $this->baseUrl . '/user/3?_format=hal_json',
],
'type' => [
'href' => $this->baseUrl . '/rest/type/user/user',
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.