public function FeedProcessorPluginTest::testRemove

Test removing functionality.

File

drupal/core/modules/aggregator/lib/Drupal/aggregator/Tests/FeedProcessorPluginTest.php, line 51
Contains \Drupal\aggregator\Tests\FeedProcessorPluginTest.

Class

FeedProcessorPluginTest
Tests feed processing in the Aggregator module.

Namespace

Drupal\aggregator\Tests

Code

public function testRemove() {
  $feed = $this
    ->createFeed();
  $this
    ->updateAndRemove($feed, NULL);

  // Make sure the feed title is changed.
  $entities = entity_load_multiple_by_properties('aggregator_feed', array(
    'description' => $feed->description->value,
  ));
  $this
    ->assertTrue(empty($entities));
}