function FileResourceTestBase::getNormalizedPostEntity
Returns the normalized POST entity.
Return value
array
Overrides EntityResourceTestBase::getNormalizedPostEntity
2 calls to FileResourceTestBase::getNormalizedPostEntity()
- FileHalJsonAnonTest::getNormalizedPostEntity in core/modules/ hal/ tests/ src/ Functional/ file/ 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/ hal/ tests/ src/ Functional/ file/ FileHalJsonAnonTest.php 
- Returns the normalized POST entity.
File
- 
              core/modules/ file/ tests/ src/ Functional/ Rest/ FileResourceTestBase.php, line 163 
Class
Namespace
Drupal\Tests\file\Functional\RestCode
protected function getNormalizedPostEntity() {
  return [
    'uid' => [
      [
        'target_id' => $this->author
          ->id(),
      ],
    ],
    'filename' => [
      [
        'value' => 'drupal.txt',
      ],
    ],
  ];
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
