You are here

public function ArrayShiftTest::testArrayShift in Migrate Plus 8.4

Same name and namespace in other branches
  1. 8.5 tests/src/Unit/process/ArrayShiftTest.php \Drupal\Tests\migrate_plus\Unit\process\ArrayShiftTest::testArrayShift()

Test array shift plugin.

@dataProvider arrayShiftDataProvider

Parameters

array $input: The input values.

mixed $expected_output: The expected output.

File

tests/src/Unit/process/ArrayShiftTest.php, line 58

Class

ArrayShiftTest
Tests the array shift process plugin.

Namespace

Drupal\Tests\migrate_plus\Unit\process

Code

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