public function FieldDiscoveryTest::addAllFieldProcessesAltersData in Drupal 9
Same name in this branch
- 9 core/modules/migrate_drupal/tests/src/Kernel/d6/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Kernel\d6\FieldDiscoveryTest::addAllFieldProcessesAltersData()
- 9 core/modules/migrate_drupal/tests/src/Kernel/d7/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Kernel\d7\FieldDiscoveryTest::addAllFieldProcessesAltersData()
Same name and namespace in other branches
- 8 core/modules/migrate_drupal/tests/src/Kernel/d6/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Kernel\d6\FieldDiscoveryTest::addAllFieldProcessesAltersData()
- 10 core/modules/migrate_drupal/tests/src/Kernel/d6/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Kernel\d6\FieldDiscoveryTest::addAllFieldProcessesAltersData()
Provides data for testAddAllFieldProcessesAlters.
Return value
array The data.
File
- core/
modules/ migrate_drupal/ tests/ src/ Kernel/ d6/ FieldDiscoveryTest.php, line 137
Class
- FieldDiscoveryTest
- Tests FieldDiscovery service against Drupal 6.
Namespace
Drupal\Tests\migrate_drupal\Kernel\d6Code
public function addAllFieldProcessesAltersData() {
return [
'Field Formatter' => [
'field_plugin_method' => 'alterFieldFormatterMigration',
'expected_process' => [
'options/type' => [
0 => [
'map' => [
'email' => [
'email_formatter_default' => 'email_mailto',
'email_formatter_contact' => 'basic_string',
'email_formatter_plain' => 'basic_string',
'email_formatter_spamspan' => 'basic_string',
'email_default' => 'email_mailto',
'email_contact' => 'basic_string',
'email_plain' => 'basic_string',
'email_spamspan' => 'basic_string',
],
'text' => [
'default' => 'text_default',
'trimmed' => 'text_trimmed',
'plain' => 'basic_string',
],
'datetime' => [
'date_default' => 'datetime_default',
'format_interval' => 'datetime_time_ago',
'date_plain' => 'datetime_plain',
],
'filefield' => [
'default' => 'file_default',
'url_plain' => 'file_url_plain',
'path_plain' => 'file_url_plain',
'image_plain' => 'image',
'image_nodelink' => 'image',
'image_imagelink' => 'image',
],
'link' => [
'default' => 'link',
'plain' => 'link',
'absolute' => 'link',
'title_plain' => 'link',
'url' => 'link',
'short' => 'link',
'label' => 'link',
'separate' => 'link_separate',
],
],
],
],
],
],
'Field Widget' => [
'field_plugin_method' => 'alterFieldWidgetMigration',
'expected_process' => [
'options/type' => [
'type' => [
'map' => [
'userreference_select' => 'options_select',
'userreference_buttons' => 'options_buttons',
'userreference_autocomplete' => 'entity_reference_autocomplete_tags',
'nodereference_select' => 'options_select',
'nodereference_buttons' => 'options_buttons',
'nodereference_autocomplete' => 'entity_reference_autocomplete_tags',
'email_textfield' => 'email_default',
'text_textfield' => 'text_textfield',
'date' => 'datetime_default',
'datetime' => 'datetime_default',
'datestamp' => 'datetime_timestamp',
'filefield_widget' => 'file_generic',
'link' => 'link_default',
],
],
],
],
],
];
}