You are here

public function AggregatorTestBase::deleteFeed in Drupal 8

Same name in this branch
  1. 8 core/modules/aggregator/src/Tests/AggregatorTestBase.php \Drupal\aggregator\Tests\AggregatorTestBase::deleteFeed()
  2. 8 core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php \Drupal\Tests\aggregator\Functional\AggregatorTestBase::deleteFeed()
Same name and namespace in other branches
  1. 9 core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php \Drupal\Tests\aggregator\Functional\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/tests/src/Functional/AddFeedTest.php
Creates and ensures that a feed is unique, checks source, and deletes feed.
AddFeedTest::testAddLongFeed in core/modules/aggregator/tests/src/Functional/AddFeedTest.php
Tests feeds with very long URLs.
DeleteFeedItemTest::testDeleteFeedItem in core/modules/aggregator/tests/src/Functional/DeleteFeedItemTest.php
Tests running "delete items" from 'admin/config/services/aggregator' page.
DeleteFeedTest::testDeleteFeed in core/modules/aggregator/tests/src/Functional/DeleteFeedTest.php
Deletes a feed and ensures that all of its services are deleted.
FeedAdminDisplayTest::testFeedUpdateFields in core/modules/aggregator/tests/src/Functional/FeedAdminDisplayTest.php
Tests the "Next update" and "Last update" fields.

... See full list

File

core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php, line 95

Class

AggregatorTestBase
Defines a base class for testing the Aggregator module.

Namespace

Drupal\Tests\aggregator\Functional

Code

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