You are here

public function RangeFieldTest::testTransform in Range 8

Test the range field data transformations.

@covers ::transform @dataProvider transformDataProvider

File

tests/src/Unit/Plugin/migrate/process/d6/RangeFieldTest.php, line 23

Class

RangeFieldTest
@coversDefaultClass \Drupal\range\Plugin\migrate\process\d6\RangeField @group range

Namespace

Drupal\Tests\range\Unit\Plugin\migrate\process\d6

Code

public function testTransform($value, $expected) {
  $plugin = new RangeField([], '', [], $this
    ->createMock(MigrationInterface::class));
  $actual = $plugin
    ->transform($value, $this
    ->createMock(MigrateExecutableInterface::class), $this
    ->createMock(Row::class), NULL);
  $this
    ->assertSame($expected, $actual);
}