feeds_ex-8.x-1.0-alpha4/tests/src/Functional/Feeds/Parser/JsonPathLinesParserTest.php
tests/src/Functional/Feeds/Parser/JsonPathLinesParserTest.php
<?php
namespace Drupal\Tests\feeds_ex\Functional\Feeds\Parser;
/**
* @coversDefaultClass \Drupal\feeds_ex\Feeds\Parser\JsonPathLinesParser
* @group feeds_ex
*/
class JsonPathLinesParserTest extends ParserTestBase {
/**
* The ID of the parser to test.
*
* @var string
*/
protected static $parserId = 'jsonpathlines';
/**
* {@inheritdoc}
*/
protected static $customSourceType = 'json';
/**
* {@inheritdoc}
*/
public function testMapping() {
$expected_sources = [
'name' => [
'label' => 'name',
'value' => 'name',
'machine_name' => 'name',
'type' => static::$customSourceType,
],
];
$custom_source = [
'value' => 'name',
'machine_name' => 'name',
];
$this->doMappingTest($expected_sources, $custom_source);
}
}
