ParserTestBase.php in Feeds extensible parsers 8
File
tests/src/Unit/Feeds/Parser/ParserTestBase.php
View source
<?php
namespace Drupal\Tests\feeds_ex\Unit\Feeds\Parser;
use Drupal\Component\Utility\Unicode;
use Drupal\feeds\State;
use Drupal\Tests\feeds_ex\Unit\UnitTestBase;
abstract class ParserTestBase extends UnitTestBase {
protected $parser;
protected $feedType;
protected $feed;
protected $state;
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));
Unicode::check();
}
}