You are here

public function QueryPathHtmlParserTest::setUp in Feeds extensible parsers 8

Overrides ParserTestBase::setUp

File

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

Class

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