function FeedTest::getPostDocument

Same name in other branches
  1. 8.9.x core/modules/jsonapi/tests/src/Functional/FeedTest.php \Drupal\Tests\jsonapi\Functional\FeedTest::getPostDocument()

Overrides ResourceTestBase::getPostDocument

File

core/modules/aggregator/tests/src/Functional/Jsonapi/FeedTest.php, line 153

Class

FeedTest
JSON:API integration test for the "Feed" content entity type.

Namespace

Drupal\Tests\aggregator\Functional\Jsonapi

Code

protected function getPostDocument() {
    return [
        'data' => [
            'type' => 'aggregator_feed--aggregator_feed',
            'attributes' => [
                'title' => 'Feed Resource Post Test',
                'url' => 'http://example.com/feed',
                'refresh' => 900,
                'description' => 'Feed Resource Post Test Description',
            ],
        ],
    ];
}

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