You are here

public function FieldDiscoveryTest::getFieldInstanceStubMigrationDefinition in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate_drupal/tests/src/Unit/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Unit\FieldDiscoveryTest::getFieldInstanceStubMigrationDefinition()
  2. 9 core/modules/migrate_drupal/tests/src/Unit/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Unit\FieldDiscoveryTest::getFieldInstanceStubMigrationDefinition()

Provides data for testGetFieldInstanceStubMigrationDefinition.

Return value

array The data.

File

core/modules/migrate_drupal/tests/src/Unit/FieldDiscoveryTest.php, line 332

Class

FieldDiscoveryTest
Tests the FieldDiscovery Class.

Namespace

Drupal\Tests\migrate_drupal\Unit

Code

public function getFieldInstanceStubMigrationDefinition() {
  return [
    'Drupal 6' => [
      'core' => FieldDiscoveryInterface::DRUPAL_6,
      'expected_definition' => [
        'destination' => [
          'plugin' => 'null',
        ],
        'idMap' => [
          'plugin' => 'null',
        ],
        'source' => [
          'ignore_map' => TRUE,
          'plugin' => 'd6_field_instance',
        ],
      ],
    ],
    'Drupal 7' => [
      'core' => FieldDiscoveryInterface::DRUPAL_7,
      'expected_definition' => [
        'destination' => [
          'plugin' => 'null',
        ],
        'idMap' => [
          'plugin' => 'null',
        ],
        'source' => [
          'ignore_map' => TRUE,
          'plugin' => 'd7_field_instance',
        ],
      ],
    ],
  ];
}