You are here

public function FeedProcessorPluginTest::testProcess in Drupal 9

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

Tests 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());
  }
}