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 instance settings transformations.
@covers ::transform @dataProvider transformDataProvider
File
- tests/
src/ Unit/ Plugin/ migrate/ process/ d6/ RangeFieldInstanceSettingsTest.php, line 23
Class
- RangeFieldInstanceSettingsTest
- @coversDefaultClass \Drupal\range\Plugin\migrate\process\d6\RangeFieldInstanceSettings @group range
Namespace
Drupal\Tests\range\Unit\Plugin\migrate\process\d6Code
public function testTransform($field_settings, $expected) {
$plugin = new RangeFieldInstanceSettings([], '', [], $this
->createMock(MigrationInterface::class));
$actual = $plugin
->transform([
[],
[],
$field_settings,
], $this
->createMock(MigrateExecutableInterface::class), $this
->createMock(Row::class), NULL);
$this
->assertSame($expected, $actual);
}