function AggregatorTestCase::deleteFeed

7.x aggregator.test AggregatorTestCase::deleteFeed($feed)

Deletes an aggregator feed.

Parameters

$feed: Feed object representing the feed.

7 calls to AggregatorTestCase::deleteFeed()
AddFeedTestCase::testAddFeed in drupal-7.x/modules/aggregator/aggregator.test
Creates and ensures that a feed is unique, checks source, and deletes feed.
AddFeedTestCase::testAddLongFeed in drupal-7.x/modules/aggregator/aggregator.test
Tests feeds with very long URLs.
CategorizeFeedItemTestCase::testCategorizeFeedItem in drupal-7.x/modules/aggregator/aggregator.test
Checks that children of a feed inherit a defined category.
RemoveFeedItemTestCase::testRemoveFeedItem in drupal-7.x/modules/aggregator/aggregator.test
Tests running "remove items" from 'admin/config/services/aggregator' page.
RemoveFeedTestCase::testRemoveFeed in drupal-7.x/modules/aggregator/aggregator.test
Removes a feed and ensures that all of its services are removed.

... See full list

File

drupal-7.x/modules/aggregator/aggregator.test, line 49
Tests for aggregator.module.

Class

AggregatorTestCase
Defines a base class for testing the Aggregator module.

Code

function deleteFeed($feed) {
  $this->drupalPost('admin/config/services/aggregator/edit/feed/' . $feed->fid, array(), t('Delete'));
  $this->assertRaw(t('The feed %title has been deleted.', array('%title' => $feed->title)), 'Feed deleted successfully.');
}