You are here

public function ParserTestBase::setUp in Feeds extensible parsers 8

Same name in this branch
  1. 8 tests/src/Functional/Feeds/Parser/ParserTestBase.php \Drupal\Tests\feeds_ex\Functional\Feeds\Parser\ParserTestBase::setUp()
  2. 8 tests/src/Unit/Feeds/Parser/ParserTestBase.php \Drupal\Tests\feeds_ex\Unit\Feeds\Parser\ParserTestBase::setUp()

Overrides UnitTestBase::setUp

7 calls to ParserTestBase::setUp()
HtmlParserTest::setUp in tests/src/Unit/Feeds/Parser/HtmlParserTest.php
JmesPathParserTest::setUp in tests/src/Unit/Feeds/Parser/JmesPathParserTest.php
JsonPathLinesParserTest::setUp in tests/src/Unit/Feeds/Parser/JsonPathLinesParserTest.php
JsonPathParserTest::setUp in tests/src/Unit/Feeds/Parser/JsonPathParserTest.php
QueryPathHtmlParserTest::setUp in tests/src/Unit/Feeds/Parser/QueryPathHtmlParserTest.php

... See full list

7 methods override ParserTestBase::setUp()
HtmlParserTest::setUp in tests/src/Unit/Feeds/Parser/HtmlParserTest.php
JmesPathParserTest::setUp in tests/src/Unit/Feeds/Parser/JmesPathParserTest.php
JsonPathLinesParserTest::setUp in tests/src/Unit/Feeds/Parser/JsonPathLinesParserTest.php
JsonPathParserTest::setUp in tests/src/Unit/Feeds/Parser/JsonPathParserTest.php
QueryPathHtmlParserTest::setUp in tests/src/Unit/Feeds/Parser/QueryPathHtmlParserTest.php

... See full list

File

tests/src/Unit/Feeds/Parser/ParserTestBase.php, line 45

Class

ParserTestBase
Base class for parser unit tests.

Namespace

Drupal\Tests\feeds_ex\Unit\Feeds\Parser

Code

public function setUp() {
  parent::setUp();
  $this->feedType = $this
    ->createMock('Drupal\\feeds\\FeedTypeInterface');
  $this->state = new State();
  $this->feed = $this
    ->createMock('Drupal\\feeds\\FeedInterface');
  $this->feed
    ->expects($this
    ->any())
    ->method('getType')
    ->will($this
    ->returnValue($this->feedType));

  // Attempt to setup multibyte support.
  Unicode::check();
}