You are here

protected function DirectoryFetcherTest::setUp in Feeds 8.3

Same name in this branch
  1. 8.3 tests/src/Unit/Feeds/Fetcher/DirectoryFetcherTest.php \Drupal\Tests\feeds\Unit\Feeds\Fetcher\DirectoryFetcherTest::setUp()
  2. 8.3 tests/src/Kernel/Feeds/Fetcher/DirectoryFetcherTest.php \Drupal\Tests\feeds\Kernel\Feeds\Fetcher\DirectoryFetcherTest::setUp()

Overrides FeedsKernelTestBase::setUp

File

tests/src/Kernel/Feeds/Fetcher/DirectoryFetcherTest.php, line 23

Class

DirectoryFetcherTest
@coversDefaultClass \Drupal\feeds\Feeds\Fetcher\DirectoryFetcher @group feeds

Namespace

Drupal\Tests\feeds\Kernel\Feeds\Fetcher

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',
    ],
  ]);
}