public function MigrateRangeFieldTest::testFieldWidgetMigration in Range 8
Same name in this branch
- 8 tests/src/Kernel/Migrate/d6/MigrateRangeFieldTest.php \Drupal\Tests\range\Kernel\Migrate\d6\MigrateRangeFieldTest::testFieldWidgetMigration()
- 8 tests/src/Kernel/Migrate/d7/MigrateRangeFieldTest.php \Drupal\Tests\range\Kernel\Migrate\d7\MigrateRangeFieldTest::testFieldWidgetMigration()
Tests migration of D7 range field widget and its settings.
@dataProvider fieldWidgetMigrationDataProvider
File
- tests/
src/ Kernel/ Migrate/ d7/ MigrateRangeFieldTest.php, line 162
Class
- MigrateRangeFieldTest
- Tests Drupal 7 range fields migration.
Namespace
Drupal\Tests\range\Kernel\Migrate\d7Code
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']);
}