You are here

public function FeedProcessorPluginTest::testProcess in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/aggregator/tests/src/Functional/FeedProcessorPluginTest.php \Drupal\Tests\aggregator\Functional\FeedProcessorPluginTest::testProcess()

Test processing functionality.

File

core/modules/aggregator/tests/src/Functional/FeedProcessorPluginTest.php, line 36

Class

FeedProcessorPluginTest
Tests the processor plugins functionality and discoverability.

Namespace

Drupal\Tests\aggregator\Functional

Code

public function testProcess() {
  $feed = $this
    ->createFeed();
  $this
    ->updateFeedItems($feed);
  foreach ($feed->items as $iid) {
    $item = Item::load($iid);
    $this
      ->assertStringStartsWith('testProcessor', $item
      ->label());
  }
}