You are here

protected function FileUploadHalJsonTestBase::getNormalizedPostEntity in Drupal 9

Same name and namespace in other branches
  1. 8 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',
      ],
    ],
  ];
}