function FeedResourceTestBase::getNormalizedPostEntity

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

Overrides EntityResourceTestBase::getNormalizedPostEntity

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',
            ],
        ],
    ];
}

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