You are here

public function FeedsSyndicationParserTestCase::test in Feeds 7

Same name and namespace in other branches
  1. 6 tests/feeds_parser_syndication.test \FeedsSyndicationParserTestCase::test()
  2. 7.2 tests/feeds_parser_syndication.test \FeedsSyndicationParserTestCase::test()

Run tests.

File

tests/feeds_parser_syndication.test, line 45
Tests for plugins/FeedsSyndicationParser.inc.

Class

FeedsSyndicationParserTestCase
Test single feeds.

Code

public function test() {
  $this
    ->createImporterConfiguration('Syndication', 'syndication');
  foreach (array(
    'FeedsSyndicationParser',
    'FeedsSimplePieParser',
  ) as $parser) {
    $this
      ->setPlugin('syndication', $parser);
    foreach ($this
      ->feedUrls() as $url => $assertions) {
      $this
        ->createFeedNode('syndication', $url);
      $this
        ->assertText('Created ' . $assertions['item_count'] . ' Article nodes.');
    }
  }
}