public function JsonPathParserTest::setUp in Feeds extensible parsers 8
Overrides ParserTestBase::setUp
File
- tests/
src/ Unit/ Feeds/ Parser/ JsonPathParserTest.php, line 21
Class
- JsonPathParserTest
- @coversDefaultClass \Drupal\feeds_ex\Feeds\Parser\JsonPathParser @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 JsonPathParser($configuration, 'jsonpath', [], $utility);
$this->parser
->setStringTranslation($this
->getStringTranslationStub());
$this->parser
->setFeedsExMessenger(new TestMessenger());
}