function UserHalJsonAnonTest::getNormalizedPostEntity

Same name and namespace in other branches
  1. 8.9.x core/modules/user/tests/src/Functional/Hal/UserHalJsonAnonTest.php \Drupal\Tests\user\Functional\Hal\UserHalJsonAnonTest::getNormalizedPostEntity()

Overrides UserResourceTestBase::getNormalizedPostEntity

File

core/modules/hal/tests/src/Functional/user/UserHalJsonAnonTest.php, line 61

Class

UserHalJsonAnonTest
@group hal @group legacy

Namespace

Drupal\Tests\hal\Functional\user

Code

protected function getNormalizedPostEntity() {
  return parent::getNormalizedPostEntity() + [
    '_links' => [
      '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.