public function MigrateRangeFieldTest::fieldWidgetMigrationDataProvider in Range 8
Same name in this branch
- 8 tests/src/Kernel/Migrate/d6/MigrateRangeFieldTest.php \Drupal\Tests\range\Kernel\Migrate\d6\MigrateRangeFieldTest::fieldWidgetMigrationDataProvider()
- 8 tests/src/Kernel/Migrate/d7/MigrateRangeFieldTest.php \Drupal\Tests\range\Kernel\Migrate\d7\MigrateRangeFieldTest::fieldWidgetMigrationDataProvider()
Data provider for testFieldWidgetMigration.
File
- tests/
src/ Kernel/ Migrate/ d6/ MigrateRangeFieldTest.php, line 172
Class
- MigrateRangeFieldTest
- Tests Drupal 6 range fields migration.
Namespace
Drupal\Tests\range\Kernel\Migrate\d6Code
public function fieldWidgetMigrationDataProvider() {
return [
'range_decimal' => [
'node.page.default',
'field_decimal',
'range',
[
'placeholder' => [
'from' => '',
'to' => '',
],
'label' => [
'from' => 'From',
'to' => 'to',
],
],
],
'range_float' => [
'node.page.default',
'field_float',
'range',
[
'placeholder' => [
'from' => '',
'to' => '',
],
'label' => [
'from' => 'From',
'to' => 'to',
],
],
],
'range_integer' => [
'node.page.default',
'field_integer',
'range',
[
'placeholder' => [
'from' => '',
'to' => '',
],
'label' => [
'from' => 'From',
'to' => 'to',
],
],
],
];
}