function AggregatorTestCase::removeFeedItems
7.x aggregator.test | AggregatorTestCase::removeFeedItems($feed) |
Confirms an item removal from a feed.
Parameters
$feed: Feed object representing the feed.
3 calls to AggregatorTestCase::removeFeedItems()
- AggregatorCronTestCase::testCron in drupal-7.x/
modules/ aggregator/ aggregator.test - Adds feeds and updates them via cron process.
- AggregatorTestCase::updateAndRemove in drupal-7.x/
modules/ aggregator/ aggregator.test - Adds and removes feed items and ensure that the count is zero.
- UpdateFeedItemTestCase::testUpdateFeedItem in drupal-7.x/
modules/ aggregator/ aggregator.test - Tests running "update items" from 'admin/config/services/aggregator' page.
File
- drupal-7.x/
modules/ aggregator/ aggregator.test, line 132 - Tests for aggregator.module.
Class
- AggregatorTestCase
- Defines a base class for testing the Aggregator module.
Code
function removeFeedItems($feed) {
$this->drupalPost('admin/config/services/aggregator/remove/' . $feed->fid, array(), t('Remove items'));
$this->assertRaw(t('The news items from %title have been removed.', array('%title' => $feed->title)), 'Feed items removed.');
}