function AggregatorTestBase::deleteFeed

Delete an aggregator feed.

Parameters

$feed: Feed object representing the feed.

7 calls to AggregatorTestBase::deleteFeed()
AddFeedTest::testAddFeed in drupal/core/modules/aggregator/lib/Drupal/aggregator/Tests/AddFeedTest.php
Create a feed, ensure that it is unique, check the source, and delete the feed.
AddFeedTest::testAddLongFeed in drupal/core/modules/aggregator/lib/Drupal/aggregator/Tests/AddFeedTest.php
Tests feeds with very long URLs.
CategorizeFeedItemTest::testCategorizeFeedItem in drupal/core/modules/aggregator/lib/Drupal/aggregator/Tests/CategorizeFeedItemTest.php
If a feed has a category, make sure that the children inherit that categorization.
RemoveFeedItemTest::testRemoveFeedItem in drupal/core/modules/aggregator/lib/Drupal/aggregator/Tests/RemoveFeedItemTest.php
Test running "remove items" from the 'admin/config/services/aggregator' page.
RemoveFeedTest::testRemoveFeed in drupal/core/modules/aggregator/lib/Drupal/aggregator/Tests/RemoveFeedTest.php
Remove a feed and ensure that all it services are removed.

... See full list

File

drupal/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorTestBase.php, line 62
Definition of Drupal\aggregator\Tests\AggregatorTestBase.

Class

AggregatorTestBase
Defines a base class for testing aggregator.module.

Namespace

Drupal\aggregator\Tests

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