public function RangeFieldInstanceWidgetSettingsTest::testTransform in Range 8
Test the range field widget settings transformations.
@covers ::transform @dataProvider transformDataProvider
File
- tests/
src/ Unit/ Plugin/ migrate/ process/ d7/ RangeFieldInstanceWidgetSettingsTest.php, line 23
Class
- RangeFieldInstanceWidgetSettingsTest
- @coversDefaultClass \Drupal\range\Plugin\migrate\process\d7\RangeFieldInstanceWidgetSettings @group range
Namespace
Drupal\Tests\range\Unit\Plugin\migrate\process\d7Code
public function testTransform($instance_settings, $expected) {
$plugin = new RangeFieldInstanceWidgetSettings([], '', [], $this
->createMock(MigrationInterface::class));
$actual = $plugin
->transform($instance_settings, $this
->createMock(MigrateExecutableInterface::class), $this
->createMock(Row::class), NULL);
$this
->assertSame($expected, $actual);
}