public function FeedsSyndicationParserTestCase::test in Feeds 6
Same name and namespace in other branches
- 7.2 tests/feeds_parser_syndication.test \FeedsSyndicationParserTestCase::test()
- 7 tests/feeds_parser_syndication.test \FeedsSyndicationParserTestCase::test()
Run tests.
File
- tests/
feeds_parser_syndication.test, line 32 - 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'] . ' Story nodes.');
}
}
}