function TermHalJsonAnonTest::getNormalizedPostEntity

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

Overrides TermResourceTestBase::getNormalizedPostEntity

File

core/modules/hal/tests/src/Functional/taxonomy/TermHalJsonAnonTest.php, line 177

Class

TermHalJsonAnonTest
@group hal @group legacy

Namespace

Drupal\Tests\hal\Functional\taxonomy

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.