protected function FileHalJsonAnonTest::getNormalizedPostEntity in Drupal 9
Same name and namespace in other branches
- 8 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 91
Class
- FileHalJsonAnonTest
- @group hal
Namespace
Drupal\Tests\file\Functional\HalCode
protected function getNormalizedPostEntity() {
return parent::getNormalizedPostEntity() + [
'_links' => [
'type' => [
'href' => $this->baseUrl . '/rest/type/file/file',
],
],
];
}