public function FeedProcessorPluginTest::testProcess

Test processing functionality.

File

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

Class

FeedProcessorPluginTest
Tests feed processing in the Aggregator module.

Namespace

Drupal\aggregator\Tests

Code

public function testProcess() {
  $feed = $this
    ->createFeed();
  $this
    ->updateFeedItems($feed);
  foreach ($feed->items as $iid) {
    $item = entity_load('aggregator_item', $iid);
    $this
      ->assertTrue(strpos($item->title->value, 'testProcessor') === 0);
  }
}