function FileHalJsonAnonTest::getNormalizedPostEntity

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

Overrides FileResourceTestBase::getNormalizedPostEntity

File

core/modules/hal/tests/src/Functional/file/FileHalJsonAnonTest.php, line 92

Class

FileHalJsonAnonTest
@group hal @group legacy

Namespace

Drupal\Tests\hal\Functional\file

Code

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

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