public function AggregatorTestBase::deleteFeedItems in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/aggregator/src/Tests/AggregatorTestBase.php \Drupal\aggregator\Tests\AggregatorTestBase::deleteFeedItems()
Confirms an item removal from a feed.
Parameters
\Drupal\aggregator\FeedInterface $feed: Feed object representing the feed.
4 calls to AggregatorTestBase::deleteFeedItems()
- AggregatorCronTest::testCron in core/
modules/ aggregator/ src/ Tests/ AggregatorCronTest.php - Adds feeds and updates them via cron process.
- AggregatorTestBase::updateAndDelete in core/
modules/ aggregator/ src/ Tests/ AggregatorTestBase.php - Adds and deletes feed items and ensure that the count is zero.
- FeedFetcherPluginTest::testfetch in core/
modules/ aggregator/ src/ Tests/ FeedFetcherPluginTest.php - Test fetching functionality.
- UpdateFeedItemTest::testUpdateFeedItem in core/
modules/ aggregator/ src/ Tests/ UpdateFeedItemTest.php - Tests running "update items" from 'admin/config/services/aggregator' page.
File
- core/
modules/ aggregator/ src/ Tests/ AggregatorTestBase.php, line 198 - Contains \Drupal\aggregator\Tests\AggregatorTestBase.
Class
- AggregatorTestBase
- Defines a base class for testing the Aggregator module.
Namespace
Drupal\aggregator\TestsCode
public function deleteFeedItems(FeedInterface $feed) {
$this
->drupalPostForm('admin/config/services/aggregator/delete/' . $feed
->id(), array(), t('Delete items'));
$this
->assertRaw(t('The news items from %title have been deleted.', array(
'%title' => $feed
->label(),
)), 'Feed items deleted.');
}