You are here

public function ArrayPopTest::testArrayPop in Migrate Plus 8.5

Same name and namespace in other branches
  1. 8.4 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\process

Code

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