function ItemResourceTestBase::getNormalizedPostEntity

Same name in other branches
  1. 8.9.x core/modules/aggregator/tests/src/Functional/Rest/ItemResourceTestBase.php \Drupal\Tests\aggregator\Functional\Rest\ItemResourceTestBase::getNormalizedPostEntity()

Overrides EntityResourceTestBase::getNormalizedPostEntity

1 call to ItemResourceTestBase::getNormalizedPostEntity()
ItemHalJsonTestBase::getNormalizedPostEntity in core/modules/hal/tests/src/Functional/aggregator/ItemHalJsonTestBase.php
Returns the normalized POST entity.
1 method overrides ItemResourceTestBase::getNormalizedPostEntity()
ItemHalJsonTestBase::getNormalizedPostEntity in core/modules/hal/tests/src/Functional/aggregator/ItemHalJsonTestBase.php
Returns the normalized POST entity.

File

core/modules/aggregator/tests/src/Functional/Rest/ItemResourceTestBase.php, line 143

Class

ItemResourceTestBase
ResourceTestBase for Item entity. @group legacy

Namespace

Drupal\Tests\aggregator\Functional\Rest

Code

protected function getNormalizedPostEntity() {
    return [
        'fid' => [
            [
                'target_id' => 1,
            ],
        ],
        'title' => [
            [
                'value' => 'Llama',
            ],
        ],
        'link' => [
            [
                'value' => 'https://www.drupal.org/',
            ],
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.