You are here

public function AggregatorTestBase::deleteFeed in Drupal 9

Same name and namespace in other branches
  1. 8 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 99

Class

AggregatorTestBase
Defines a base class for testing the Aggregator module.

Namespace

Drupal\Tests\aggregator\Functional

Code

public function deleteFeed(FeedInterface $feed) {
  $this
    ->drupalGet('aggregator/sources/' . $feed
    ->id() . '/delete');
  $this
    ->submitForm([], 'Delete');
  $this
    ->assertSession()
    ->pageTextContains('The feed ' . $feed
    ->label() . ' has been deleted.');
}