function AggregatorTestCase::deleteFeed

Deletes an aggregator feed.

Parameters

$feed: Feed object representing the feed.

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

... See full list

File

modules/aggregator/aggregator.test, line 49

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.