public function ArrayPopTest::testArrayPop in Migrate Plus 8.4
Same name and namespace in other branches
- 8.5 tests/src/Unit/process/ArrayPopTest.php \Drupal\Tests\migrate_plus\Unit\process\ArrayPopTest::testArrayPop()
Test array pop plugin.
@dataProvider arrayPopDataProvider
Parameters
array $input: The input values.
mixed $expected_output: The expected output.
File
- tests/
src/ Unit/ process/ ArrayPopTest.php, line 58
Class
- ArrayPopTest
- Tests the array pop process plugin.
Namespace
Drupal\Tests\migrate_plus\Unit\processCode
public function testArrayPop(array $input, $expected_output) {
$output = $this->plugin
->transform($input, $this->migrateExecutable, $this->row, 'destinationproperty');
$this
->assertSame($output, $expected_output);
}