You are here

protected function FeedResourceTestBase::getNormalizedPostEntity in Drupal 8

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

Returns the normalized POST entity.

Return value

array

Overrides EntityResourceTestBase::getNormalizedPostEntity

See also

::testPost

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

File

core/modules/aggregator/tests/src/Functional/Rest/FeedResourceTestBase.php, line 148

Class

FeedResourceTestBase

Namespace

Drupal\Tests\aggregator\Functional\Rest

Code

protected function getNormalizedPostEntity() {
  return [
    'title' => [
      [
        'value' => 'Feed Resource Post Test',
      ],
    ],
    'url' => [
      [
        'value' => 'http://example.com/feed',
      ],
    ],
    'refresh' => [
      [
        'value' => 900,
      ],
    ],
    'description' => [
      [
        'value' => 'Feed Resource Post Test Description',
      ],
    ],
  ];
}