class FeedsExJmesPathLinesUnitTests in Feeds extensible parsers 7.2
Unit tests for FeedsExJmesPathLines.
Hierarchy
- class \FeedsExUnitTestBase extends \TUnit
Expanded class hierarchy of FeedsExJmesPathLinesUnitTests
File
- src/
Tests/ FeedsExJmesPathLines.test, line 11 - Contains FeedsExJmesPathLinesUnitTests.
View source
class FeedsExJmesPathLinesUnitTests extends FeedsExJsonPathLinesUnitTests {
public static function getInfo() {
return array(
'name' => 'JMESPath JSON lines parser unit tests',
'description' => 'Unit tests for FeedsExJmesPathLines.',
'group' => 'Feeds EX',
);
}
public function setUp() {
parent::setUp();
require_once $this->moduleDir . '/src/FeedsExJmesPath.inc';
require_once $this->moduleDir . '/src/FeedsExJmesPathLines.inc';
$this->source = $this
->getMockFeedsSource();
$this->parser = FeedsConfigurable::instance('FeedsExJmesPathLines', 'test_parser');
$this->parser
->setConfig(array(
'sources' => array(
'title' => array(
'name' => 'Title',
'value' => 'name',
),
),
));
$this->fetcherResult = new FeedsFileFetcherResult($this->moduleDir . '/tests/resources/test.jsonl');
// Tests are in FeedsExJsonPathLinesUnitTests.
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FeedsExJmesPathLinesUnitTests:: |
public static | function |
Overrides FeedsExJsonPathLinesUnitTests:: |
|
FeedsExJmesPathLinesUnitTests:: |
public | function |
Overrides FeedsExJsonPathLinesUnitTests:: |
|
FeedsExJsonPathLinesUnitTests:: |
protected | property | The fetcher result used during parsing. | |
FeedsExJsonPathLinesUnitTests:: |
protected | property | The parser being tested. | |
FeedsExJsonPathLinesUnitTests:: |
protected | property | The mocked FeedsSource. | |
FeedsExJsonPathLinesUnitTests:: |
public | function | Tests batch parsing. | |
FeedsExJsonPathLinesUnitTests:: |
public | function | Tests simple parsing. | |
FeedsExUnitTestBase:: |
protected | property | The module directory. | |
FeedsExUnitTestBase:: |
protected | function | Downloads JSONPath. | |
FeedsExUnitTestBase:: |
protected | function | Returns a mocked FeedsSource object. |