public function JsonPathLinesParserTest::testSimpleParsing in Feeds extensible parsers 8
Tests simple parsing.
File
- tests/
src/ Unit/ Feeds/ Parser/ JsonPathLinesParserTest.php, line 52
Class
- JsonPathLinesParserTest
- @coversDefaultClass \Drupal\feeds_ex\Feeds\Parser\JsonPathLinesParser @group feeds_ex
Namespace
Drupal\Tests\feeds_ex\Unit\Feeds\ParserCode
public function testSimpleParsing() {
$result = $this->parser
->parse($this->feed, $this->fetcherResult, $this->state);
$this
->assertCount(4, $result);
foreach ([
'Gilbert',
'Alexa',
'May',
'Deloise',
] as $delta => $name) {
$this
->assertSame($name, $result[$delta]
->get('title'));
}
}