protected function FeedCacheTagsTest::createEntity in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/aggregator/src/Tests/FeedCacheTagsTest.php \Drupal\aggregator\Tests\FeedCacheTagsTest::createEntity()
Creates the entity to be tested.
Return value
\Drupal\Core\Entity\EntityInterface The entity to be tested.
Overrides EntityCacheTagsTestBase::createEntity
File
- core/
modules/ aggregator/ src/ Tests/ FeedCacheTagsTest.php, line 43 - Contains \Drupal\aggregator\Tests\FeedCacheTagsTest.
Class
- FeedCacheTagsTest
- Tests the Feed entity's cache tags.
Namespace
Drupal\aggregator\TestsCode
protected function createEntity() {
// Create a "Llama" feed.
$feed = Feed::create(array(
'title' => 'Llama',
'url' => 'https://www.drupal.org/',
'refresh' => 900,
'checked' => 1389919932,
'description' => 'Drupal.org',
));
$feed
->save();
return $feed;
}