public function FeedProcessorPluginTest::testPostProcess

Test post-processing functionality.

File

drupal/core/modules/aggregator/lib/Drupal/aggregator/Tests/FeedProcessorPluginTest.php, line 62
Contains \Drupal\aggregator\Tests\FeedProcessorPluginTest.

Class

FeedProcessorPluginTest
Tests feed processing in the Aggregator module.

Namespace

Drupal\aggregator\Tests

Code

public function testPostProcess() {
  $feed = $this
    ->createFeed(NULL, array(
    'refresh' => 1800,
  ));
  $this
    ->updateFeedItems($feed);

  // Reload the feed to get new values.
  $feed = entity_load('aggregator_feed', $feed
    ->id(), TRUE);

  // Make sure its refresh rate doubled.
  $this
    ->assertEqual($feed->refresh->value, 3600);
}