public function FeedProcessorPluginTest::testProcess in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/aggregator/src/Tests/FeedProcessorPluginTest.php \Drupal\aggregator\Tests\FeedProcessorPluginTest::testProcess()
Test processing functionality.
File
- core/
modules/ aggregator/ src/ Tests/ FeedProcessorPluginTest.php, line 36 - Contains \Drupal\aggregator\Tests\FeedProcessorPluginTest.
Class
- FeedProcessorPluginTest
- Tests the processor plugins functionality and discoverability.
Namespace
Drupal\aggregator\TestsCode
public function testProcess() {
$feed = $this
->createFeed();
$this
->updateFeedItems($feed);
foreach ($feed->items as $iid) {
$item = Item::load($iid);
$this
->assertTrue(strpos($item
->label(), 'testProcessor') === 0);
}
}