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