You are here

public function MigrateRangeFieldTest::fieldMigrationDataProvider in Range 8

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

Data provider for testFieldMigration.

File

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

Class

MigrateRangeFieldTest
Tests Drupal 6 range fields migration.

Namespace

Drupal\Tests\range\Kernel\Migrate\d6

Code

public function fieldMigrationDataProvider() {
  return [
    'range_decimal' => [
      'node.field_decimal',
      'range_decimal',
      [
        'precision' => 12,
        'scale' => 1,
      ],
    ],
    'range_float' => [
      'node.field_float',
      'range_float',
      [],
    ],
    'range_integer' => [
      'node.field_integer',
      'range_integer',
      [],
    ],
  ];
}