You are here

public function TransposeTest::testTranspose in Migrate Plus 8.5

Test transpose plugin.

@dataProvider transposeDataProvider

Parameters

array $input: The input values.

mixed $expected_output: The expected output.

File

tests/src/Unit/process/TransposeTest.php, line 34

Class

TransposeTest
Tests the transpose process plugin.

Namespace

Drupal\Tests\migrate_plus\Unit\process

Code

public function testTranspose(array $input, $expected_output) : void {
  $output = $this->plugin
    ->transform($input, $this->migrateExecutable, $this->row, 'destinationproperty');
  $this
    ->assertSame($output, $expected_output);
}