function TermHalJsonAnonTest::getNormalizedPostEntity

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

Overrides TermResourceTestBase::getNormalizedPostEntity

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',
            ],
        ],
    ];
}

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