You are here

protected function TranslationTest::getDefaultMappings in Feeds 8.3

Overrides FeedCreationTrait::getDefaultMappings().

Overrides FeedCreationTrait::getDefaultMappings

File

tests/src/Kernel/Feeds/Target/TranslationTest.php, line 507

Class

TranslationTest
Test for the entity field translation.

Namespace

Drupal\Tests\feeds\Kernel\Feeds\Target

Code

protected function getDefaultMappings() {
  return [
    [
      'target' => 'feeds_item',
      'map' => [
        'guid' => 'guid',
      ],
      'unique' => [
        'guid' => TRUE,
      ],
      'settings' => [],
    ],
    [
      'target' => 'title',
      'map' => [
        'value' => 'title',
      ],
      'settings' => [
        'language' => NULL,
      ],
      'unique' => [
        'value' => 1,
      ],
    ],
  ];
}