You are here

public function AggregatorTestBase::deleteFeed in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/aggregator/src/Tests/AggregatorTestBase.php \Drupal\aggregator\Tests\AggregatorTestBase::deleteFeed()

Deletes an aggregator feed.

Parameters

\Drupal\aggregator\FeedInterface $feed: Feed object representing the feed.

7 calls to AggregatorTestBase::deleteFeed()
AddFeedTest::testAddFeed in core/modules/aggregator/src/Tests/AddFeedTest.php
Creates and ensures that a feed is unique, checks source, and deletes feed.
AddFeedTest::testAddLongFeed in core/modules/aggregator/src/Tests/AddFeedTest.php
Tests feeds with very long URLs.
DeleteFeedItemTest::testDeleteFeedItem in core/modules/aggregator/src/Tests/DeleteFeedItemTest.php
Tests running "delete items" from 'admin/config/services/aggregator' page.
DeleteFeedTest::testDeleteFeed in core/modules/aggregator/src/Tests/DeleteFeedTest.php
Deletes a feed and ensures that all of its services are deleted.
FeedAdminDisplayTest::testFeedUpdateFields in core/modules/aggregator/src/Tests/FeedAdminDisplayTest.php
Tests the "Next update" and "Last update" fields.

... See full list

File

core/modules/aggregator/src/Tests/AggregatorTestBase.php, line 82
Contains \Drupal\aggregator\Tests\AggregatorTestBase.

Class

AggregatorTestBase
Defines a base class for testing the Aggregator module.

Namespace

Drupal\aggregator\Tests

Code

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