You are here

public function QueryPathXmlParserTest::setUp in Feeds extensible parsers 8

Overrides ParserTestBase::setUp

File

tests/src/Unit/Feeds/Parser/QueryPathXmlParserTest.php, line 19

Class

QueryPathXmlParserTest
@coversDefaultClass \Drupal\feeds_ex\Feeds\Parser\QueryPathXmlParser @group feeds_ex

Namespace

Drupal\Tests\feeds_ex\Unit\Feeds\Parser

Code

public function setUp() {
  parent::setUp();
  $configuration = [
    'feed_type' => $this->feedType,
  ];
  $utility = new XmlUtility();
  $utility
    ->setStringTranslation($this
    ->getStringTranslationStub());
  $this->parser = new QueryPathXmlParser($configuration, 'querypathxml', [], $utility);
  $this->parser
    ->setStringTranslation($this
    ->getStringTranslationStub());
  $this->parser
    ->setFeedsExMessenger(new TestMessenger());
}