function AggregatorTestBase::removeFeedItems

Confirm item removal from a feed.

Parameters

$feed: Feed object representing the feed.

3 calls to AggregatorTestBase::removeFeedItems()
AggregatorCronTest::testCron in drupal/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorCronTest.php
Add feeds update them on cron.
AggregatorTestBase::updateAndRemove in drupal/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorTestBase.php
Add and remove feed items and ensure that the count is zero.
UpdateFeedItemTest::testUpdateFeedItem in drupal/core/modules/aggregator/lib/Drupal/aggregator/Tests/UpdateFeedItemTest.php
Test running "update items" from the 'admin/config/services/aggregator' page.

File

drupal/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorTestBase.php, line 141
Definition of Drupal\aggregator\Tests\AggregatorTestBase.

Class

AggregatorTestBase
Defines a base class for testing aggregator.module.

Namespace

Drupal\aggregator\Tests

Code

function removeFeedItems($feed) {
  $this
    ->drupalPost('admin/config/services/aggregator/remove/' . $feed->fid, array(), t('Remove items'));
  $this
    ->assertRaw(t('The news items from %title have been removed.', array(
    '%title' => $feed->title,
  )), 'Feed items removed.');
}