You are here

protected function ItemResourceTestBase::getNormalizedPostEntity in Drupal 8

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

Returns the normalized POST entity.

Return value

array

Overrides EntityResourceTestBase::getNormalizedPostEntity

See also

::testPost

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

File

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

Class

ItemResourceTestBase
ResourceTestBase for Item entity.

Namespace

Drupal\Tests\aggregator\Functional\Rest

Code

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