You are here

public function MigrateRangeFieldTest::fieldDataMigrationDataProvider in Range 8

Same name in this branch
  1. 8 tests/src/Kernel/Migrate/d6/MigrateRangeFieldTest.php \Drupal\Tests\range\Kernel\Migrate\d6\MigrateRangeFieldTest::fieldDataMigrationDataProvider()
  2. 8 tests/src/Kernel/Migrate/d7/MigrateRangeFieldTest.php \Drupal\Tests\range\Kernel\Migrate\d7\MigrateRangeFieldTest::fieldDataMigrationDataProvider()

Data provider for testFieldDataMigration.

File

tests/src/Kernel/Migrate/d6/MigrateRangeFieldTest.php, line 371

Class

MigrateRangeFieldTest
Tests Drupal 6 range fields migration.

Namespace

Drupal\Tests\range\Kernel\Migrate\d6

Code

public function fieldDataMigrationDataProvider() {
  return [
    'range_decimal' => [
      'field_decimal',
      [
        [
          'from' => '55.6',
          'to' => '55.6',
        ],
        [
          'from' => '67.7',
          'to' => '67.7',
        ],
        [
          'from' => '88.9',
          'to' => '88.9',
        ],
      ],
    ],
    'range_float' => [
      'field_float',
      [],
    ],
    'range_integer' => [
      'field_integer',
      [
        [
          'from' => '120',
          'to' => '120',
        ],
      ],
    ],
  ];
}