You are here

public function FeedsExJmesPathLinesUnitTests::setUp in Feeds extensible parsers 7.2

Overrides FeedsExJsonPathLinesUnitTests::setUp

File

src/Tests/FeedsExJmesPathLines.test, line 21
Contains FeedsExJmesPathLinesUnitTests.

Class

FeedsExJmesPathLinesUnitTests
Unit tests for FeedsExJmesPathLines.

Code

public function setUp() {
  parent::setUp();
  require_once $this->moduleDir . '/src/FeedsExJmesPath.inc';
  require_once $this->moduleDir . '/src/FeedsExJmesPathLines.inc';
  $this->source = $this
    ->getMockFeedsSource();
  $this->parser = FeedsConfigurable::instance('FeedsExJmesPathLines', 'test_parser');
  $this->parser
    ->setConfig(array(
    'sources' => array(
      'title' => array(
        'name' => 'Title',
        'value' => 'name',
      ),
    ),
  ));
  $this->fetcherResult = new FeedsFileFetcherResult($this->moduleDir . '/tests/resources/test.jsonl');

  // Tests are in FeedsExJsonPathLinesUnitTests.
}