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