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/d7/MigrateRangeFieldTest.php, line 307

Class

MigrateRangeFieldTest
Tests Drupal 7 range fields migration.

Namespace

Drupal\Tests\range\Kernel\Migrate\d7

Code

public function fieldDataMigrationDataProvider() {
  return [
    'range_decimal' => [
      'field_decimal',
      [
        [
          'from' => '12.0000',
          'to' => '18.0000',
        ],
        [
          'from' => '-44.3300',
          'to' => '66.7700',
        ],
      ],
    ],
    'range_float' => [
      'field_float',
      [
        [
          'from' => '2.5',
          'to' => '4.5',
        ],
      ],
    ],
    'range_integer' => [
      'field_integer',
      [
        [
          'from' => '8',
          'to' => '111111',
        ],
      ],
    ],
  ];
}