You are here

protected function FileHalJsonAnonTest::getNormalizedPostEntity in Drupal 8

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

Returns the normalized POST entity.

Return value

array

Overrides FileResourceTestBase::getNormalizedPostEntity

See also

::testPost

File

core/modules/file/tests/src/Functional/Hal/FileHalJsonAnonTest.php, line 93

Class

FileHalJsonAnonTest
@group hal

Namespace

Drupal\Tests\file\Functional\Hal

Code

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