public function ArrayShiftTest::testArrayShift in Migrate Plus 8.5
Same name and namespace in other branches
- 8.4 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\processCode
public function testArrayShift(array $input, $expected_output) : void {
$output = $this->plugin
->transform($input, $this->migrateExecutable, $this->row, 'destinationproperty');
$this
->assertSame($output, $expected_output);
}