protected function FileResourceTestBase::getNormalizedPostEntity in Drupal 8
Same name and namespace in other branches
- 9 core/modules/file/tests/src/Functional/Rest/FileResourceTestBase.php \Drupal\Tests\file\Functional\Rest\FileResourceTestBase::getNormalizedPostEntity()
 
Returns the normalized POST entity.
Return value
array
Overrides EntityResourceTestBase::getNormalizedPostEntity
See also
::testPost
2 calls to FileResourceTestBase::getNormalizedPostEntity()
- FileHalJsonAnonTest::getNormalizedPostEntity in core/
modules/ file/ tests/ src/ Functional/ Hal/ FileHalJsonAnonTest.php  - Returns the normalized POST entity.
 - FileResourceTestBase::getNormalizedPatchEntity in core/
modules/ file/ tests/ src/ Functional/ Rest/ FileResourceTestBase.php  - Returns the normalized PATCH entity.
 
1 method overrides FileResourceTestBase::getNormalizedPostEntity()
- FileHalJsonAnonTest::getNormalizedPostEntity in core/
modules/ file/ tests/ src/ Functional/ Hal/ FileHalJsonAnonTest.php  - Returns the normalized POST entity.
 
File
- core/
modules/ file/ tests/ src/ Functional/ Rest/ FileResourceTestBase.php, line 172  
Class
Namespace
Drupal\Tests\file\Functional\RestCode
protected function getNormalizedPostEntity() {
  return [
    'uid' => [
      [
        'target_id' => $this->author
          ->id(),
      ],
    ],
    'filename' => [
      [
        'value' => 'drupal.txt',
      ],
    ],
  ];
}