You are here

protected function FileUploadHalJsonTestBase::getNormalizedPostEntity in Drupal 8

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

Overrides FileUploadResourceTestBase::getNormalizedPostEntity

See also

\Drupal\Tests\hal\Functional\EntityResource\EntityTest\EntityTestHalJsonAnonTest::getNormalizedPostEntity()

File

core/modules/file/tests/src/Functional/Hal/FileUploadHalJsonTestBase.php, line 87

Class

FileUploadHalJsonTestBase
Tests binary data file upload route for HAL JSON.

Namespace

Drupal\Tests\file\Functional\Hal

Code

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