You are here

protected function CsvParserFeedFormTest::setUp in Feeds 8.3

Overrides FeedsBrowserTestBase::setUp

File

tests/src/Functional/Feeds/Parser/Form/CsvParserFeedFormTest.php, line 24

Class

CsvParserFeedFormTest
@coversDefaultClass \Drupal\feeds\Feeds\Parser\Form\CsvParserFeedForm @group feeds

Namespace

Drupal\Tests\feeds\Functional\Feeds\Parser\Form

Code

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

  // Create a feed type.
  $this->feedType = $this
    ->createFeedTypeForCsv([
    'guid' => 'GUID',
    'title' => 'Title',
  ], [
    'fetcher' => 'upload',
    'fetcher_configuration' => [
      'allowed_extensions' => 'csv',
    ],
    'mappings' => [
      [
        'target' => 'feeds_item',
        'map' => [
          'guid' => 'guid',
        ],
      ],
      [
        'target' => 'title',
        'map' => [
          'value' => 'title',
        ],
      ],
    ],
  ]);
}