You are here

public function XmlParserTest::setUp in Feeds extensible parsers 8

Overrides ParserTestBase::setUp

File

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

Class

XmlParserTest
@coversDefaultClass \Drupal\feeds_ex\Feeds\Parser\XmlParser @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 XmlParser($configuration, 'xml', [], $utility);
  $this->parser
    ->setStringTranslation($this
    ->getStringTranslationStub());
  $this->parser
    ->setFeedsExMessenger(new TestMessenger());
}