public function FeedsExJsonPathLinesUnitTests::testBatching in Feeds extensible parsers 7.2
Tests batch parsing.
File
- src/
Tests/ FeedsExJsonPathLines.test, line 78 - Contains FeedsExJsonPathLinesUnitTests.
Class
- FeedsExJsonPathLinesUnitTests
- Unit tests for FeedsExJsonPathLines.
Code
public function testBatching() {
$this
->variableSet('feeds_process_limit', 1);
foreach (array(
'Gilbert',
'Alexa',
'May',
'Deloise',
) as $name) {
$result = $this->parser
->parse($this->source, $this->fetcherResult);
$this
->assertEqual(count($result->items), 1, format_string('@count items parsed.', array(
'@count' => count($result->items),
)));
$this
->assertEqual($result->items[0]['title'], $name);
}
}