public function FeedsSyndicationParserTest::test in Feeds 8.2
Run tests.
File
- lib/
Drupal/ feeds/ Tests/ FeedsSyndicationParserTest.php, line 33 - Tests for plugins/FeedsSyndicationParser.inc.
Class
- FeedsSyndicationParserTest
- Test single feeds.
Namespace
Drupal\feeds\TestsCode
public function test() {
$this
->createImporterConfiguration('Syndication', 'syndication');
// foreach (array('syndication', 'FeedsSimplePieParser') as $parser) {
foreach (array(
'syndication',
) as $parser) {
$this
->setPlugin('syndication', $parser);
foreach ($this
->feedUrls() as $url => $assertions) {
$this
->createFeedNode('syndication', $url);
$this
->assertText('Created ' . $assertions['item_count'] . ' nodes');
}
}
}