function NodeHalJsonAnonTest::getNormalizedPostEntity

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

Overrides NodeResourceTestBase::getNormalizedPostEntity

File

core/modules/hal/tests/src/Functional/node/NodeHalJsonAnonTest.php, line 120

Class

NodeHalJsonAnonTest
@group hal @group legacy

Namespace

Drupal\Tests\hal\Functional\node

Code

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

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