function FeedResourceTestBase::getNormalizedPostEntity

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

File

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

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.