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