You are here

public function HtmlParserTest::setUp in Feeds extensible parsers 8

Overrides ParserTestBase::setUp

File

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

Class

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