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()

Deletes an aggregator feed.

Parameters

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

File

core/modules/aggregator/src/Tests/AggregatorTestBase.php, line 97

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', [], t('Delete'));
  $this
    ->assertRaw(t('The feed %title has been deleted.', [
    '%title' => $feed
      ->label(),
  ]), 'Feed deleted successfully.');
}