function AggregatorTestCase::removeFeedItems
Confirms an item removal from a feed.
Parameters
$feed: Feed object representing the feed.
6 calls to AggregatorTestCase::removeFeedItems()
- AggregatorCronTestCase::testCron in drupal-7.x/
modules/ aggregator/ aggregator.test - Adds feeds and updates them via cron process.
- 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.
- 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.
Archivo
- drupal-7.x/
modules/ aggregator/ aggregator.test, line 132 - Tests for aggregator.module.
Class
- AggregatorTestCase
- Defines a base class for testing the Aggregator module.
Código
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.');
}