public function JsonPathLinesParserTest::setUp in Feeds extensible parsers 8
Overrides ParserTestBase::setUp
1 call to JsonPathLinesParserTest::setUp()
- JmesPathLinesParserTest::setUp in tests/src/ Unit/ Feeds/ Parser/ JmesPathLinesParserTest.php 
1 method overrides JsonPathLinesParserTest::setUp()
- JmesPathLinesParserTest::setUp in tests/src/ Unit/ Feeds/ Parser/ JmesPathLinesParserTest.php 
File
- tests/src/ Unit/ Feeds/ Parser/ JsonPathLinesParserTest.php, line 26 
Class
- JsonPathLinesParserTest
- @coversDefaultClass \Drupal\feeds_ex\Feeds\Parser\JsonPathLinesParser @group feeds_ex
Namespace
Drupal\Tests\feeds_ex\Unit\Feeds\ParserCode
public function setUp() {
  parent::setUp();
  $configuration = [
    'feed_type' => $this->feedType,
  ];
  $utility = new JsonUtility();
  $utility
    ->setStringTranslation($this
    ->getStringTranslationStub());
  $this->parser = new JsonPathLinesParser($configuration, 'jsonpathlines', [], $utility);
  $this->parser
    ->setStringTranslation($this
    ->getStringTranslationStub());
  $this->parser
    ->setFeedsExMessenger(new TestMessenger());
  $config = [
    'sources' => [
      'title' => [
        'name' => 'Title',
        'value' => 'name',
      ],
    ],
  ];
  $this->parser
    ->setConfiguration($config);
  $this->fetcherResult = new FetcherResult($this->moduleDir . '/tests/resources/test.jsonl');
}