function AggregatorTestBase::deleteFeed

Deletes an aggregator feed.

Parameters

\Drupal\aggregator\Plugin\Core\Entity\Feed $feed: Feed object representing the feed.

7 calls to AggregatorTestBase::deleteFeed()
AddFeedTest::testAddFeed in drupal/core/modules/aggregator/lib/Drupal/aggregator/Tests/AddFeedTest.php
Creates and ensures that a feed is unique, checks source, and deletes 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
Checks that children of a feed inherit a defined category.
RemoveFeedItemTest::testRemoveFeedItem in drupal/core/modules/aggregator/lib/Drupal/aggregator/Tests/RemoveFeedItemTest.php
Tests running "remove items" from 'admin/config/services/aggregator' page.
RemoveFeedTest::testRemoveFeed in drupal/core/modules/aggregator/lib/Drupal/aggregator/Tests/RemoveFeedTest.php
Removes a feed and ensures that all of its services are removed.

... See full list

File

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

Class

AggregatorTestBase
Defines a base class for testing the Aggregator module.

Namespace

Drupal\aggregator\Tests

Code

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