function AggregatorTestBase::deleteFeed
Same name in other branches
- 8.9.x core/modules/aggregator/src/Tests/AggregatorTestBase.php \Drupal\aggregator\Tests\AggregatorTestBase::deleteFeed()
- 8.9.x 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.
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\FunctionalCode
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.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.