You are here

protected function ExpireTest::setUp in Feeds 8.3

Overrides FeedsBrowserTestBase::setUp

File

tests/src/Functional/ExpireTest.php, line 25

Class

ExpireTest
Tests the expire feature.

Namespace

Drupal\Tests\feeds\Functional

Code

protected function setUp() {
  parent::setUp();

  // Create a feed type.
  $this->feedType = $this
    ->createFeedType([
    'fetcher' => 'directory',
    'fetcher_configuration' => [
      'allowed_extensions' => 'atom rss rss1 rss2 opml xml',
    ],
    'processor_configuration' => [
      'authorize' => FALSE,
      'update_existing' => ProcessorInterface::UPDATE_EXISTING,
      'values' => [
        'type' => 'article',
      ],
      'expire' => 3600,
      'skip_hash_check' => TRUE,
    ],
  ]);
}