You are here

protected function TermHalJsonAnonTest::getNormalizedPostEntity in Drupal 8

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

Code

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