function FieldDiscoveryTest::getFieldInstanceStubMigrationDefinition
Same name in other branches
- 8.9.x core/modules/migrate_drupal/tests/src/Unit/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Unit\FieldDiscoveryTest::getFieldInstanceStubMigrationDefinition()
- 10 core/modules/migrate_drupal/tests/src/Unit/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Unit\FieldDiscoveryTest::getFieldInstanceStubMigrationDefinition()
- 11.x 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\UnitCode
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',
],
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.