function FileResourceTestBase::getNormalizedPostEntity

Same name in other branches
  1. 9 core/modules/file/tests/src/Functional/Rest/FileResourceTestBase.php \Drupal\Tests\file\Functional\Rest\FileResourceTestBase::getNormalizedPostEntity()
  2. 10 core/modules/file/tests/src/Functional/Rest/FileResourceTestBase.php \Drupal\Tests\file\Functional\Rest\FileResourceTestBase::getNormalizedPostEntity()
  3. 11.x core/modules/file/tests/src/Functional/Rest/FileResourceTestBase.php \Drupal\Tests\file\Functional\Rest\FileResourceTestBase::getNormalizedPostEntity()

Overrides EntityResourceTestBase::getNormalizedPostEntity

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

FileResourceTestBase

Namespace

Drupal\Tests\file\Functional\Rest

Code

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.