function AggregatorTestCase::removeFeedItems

Confirms an item removal from a feed.

Parameters

$feed: Feed object representing the feed.

3 calls to AggregatorTestCase::removeFeedItems()
AggregatorCronTestCase::testCron in drupal/modules/aggregator/aggregator.test
Adds feeds and updates them via cron process.
AggregatorTestCase::updateAndRemove in drupal/modules/aggregator/aggregator.test
Adds and removes feed items and ensure that the count is zero.
UpdateFeedItemTestCase::testUpdateFeedItem in drupal/modules/aggregator/aggregator.test
Tests running "update items" from 'admin/config/services/aggregator' page.

File

drupal/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.');
}