You are here

public function MigrateRangeFieldTest::testFieldWidgetMigration in Range 8

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

Tests migration of D6 range field widget and its settings.

@dataProvider fieldWidgetMigrationDataProvider

File

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

Class

MigrateRangeFieldTest
Tests Drupal 6 range fields migration.

Namespace

Drupal\Tests\range\Kernel\Migrate\d6

Code

public function testFieldWidgetMigration($display_id, $component_id, $type, $settings) {
  $component = EntityFormDisplay::load($display_id)
    ->getComponent($component_id);
  $this
    ->assertSame($type, $component['type']);
  $this
    ->assertSame($settings, $component['settings']);
}