function FeedTest::getPostDocument
Same name in other branches
- 9 core/modules/aggregator/tests/src/Functional/Jsonapi/FeedTest.php \Drupal\Tests\aggregator\Functional\Jsonapi\FeedTest::getPostDocument()
Overrides ResourceTestBase::getPostDocument
File
-
core/
modules/ jsonapi/ tests/ src/ Functional/ FeedTest.php, line 151
Class
- FeedTest
- JSON:API integration test for the "Feed" content entity type.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
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.