You are here

protected function UserHalJsonAnonTest::getNormalizedPostEntity in Drupal 9

Same name and namespace in other branches
  1. 8 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\Hal

Code

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