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