You are here

public function FeedProcessorPluginTest::testDelete in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/aggregator/src/Tests/FeedProcessorPluginTest.php \Drupal\aggregator\Tests\FeedProcessorPluginTest::testDelete()

Test deleting functionality.

File

core/modules/aggregator/src/Tests/FeedProcessorPluginTest.php, line 48
Contains \Drupal\aggregator\Tests\FeedProcessorPluginTest.

Class

FeedProcessorPluginTest
Tests the processor plugins functionality and discoverability.

Namespace

Drupal\aggregator\Tests

Code

public function testDelete() {
  $feed = $this
    ->createFeed();
  $description = $feed->description->value ?: '';
  $this
    ->updateAndDelete($feed, NULL);

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