function FeedCacheTagsTest::createEntity
Same name and namespace in other branches
- 8.9.x core/modules/aggregator/tests/src/Functional/FeedCacheTagsTest.php \Drupal\Tests\aggregator\Functional\FeedCacheTagsTest::createEntity()
Overrides EntityCacheTagsTestBase::createEntity
File
-
core/
modules/ aggregator/ tests/ src/ Functional/ FeedCacheTagsTest.php, line 44
Class
- FeedCacheTagsTest
- Tests the Feed entity's cache tags.
Namespace
Drupal\Tests\aggregator\FunctionalCode
protected function createEntity() {
// Create a "Llama" feed.
$feed = Feed::create([
'title' => 'Llama',
'url' => 'https://www.drupal.org/',
'refresh' => 900,
'checked' => 1389919932,
'description' => 'Drupal.org',
]);
$feed->save();
return $feed;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.