You are here

public function MigrateRangeFieldTest::fieldWidgetMigrationDataProvider in Range 8

Same name in this branch
  1. 8 tests/src/Kernel/Migrate/d6/MigrateRangeFieldTest.php \Drupal\Tests\range\Kernel\Migrate\d6\MigrateRangeFieldTest::fieldWidgetMigrationDataProvider()
  2. 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/d7/MigrateRangeFieldTest.php, line 171

Class

MigrateRangeFieldTest
Tests Drupal 7 range fields migration.

Namespace

Drupal\Tests\range\Kernel\Migrate\d7

Code

public function fieldWidgetMigrationDataProvider() {
  return [
    'range_decimal' => [
      'node.page.default',
      'field_decimal',
      'range',
      [
        'label' => [
          'from' => 'From',
          'to' => 'to',
        ],
        'placeholder' => [
          'from' => '',
          'to' => '',
        ],
      ],
    ],
    'range_float' => [
      'node.page.default',
      'field_float',
      'range',
      [
        'label' => [
          'from' => 'FROM',
          'to' => 'TO',
        ],
        'placeholder' => [
          'from' => '',
          'to' => '',
        ],
      ],
    ],
    'range_integer' => [
      'node.page.default',
      'field_integer',
      'range',
      [
        'label' => [
          'from' => 'From',
          'to' => 'to',
        ],
        'placeholder' => [
          'from' => '',
          'to' => '',
        ],
      ],
    ],
  ];
}