You are here

function AggregatorTestCase::removeFeedItems in Drupal 7

Confirms an item removal from a feed.

Parameters

$feed: Feed object representing the feed.

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

File

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