You are here

public function MultipleValuesTest::testTreatAsMultiple in Migrate Plus 8.4

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

Test input treated as multiple value output.

File

tests/src/Unit/process/MultipleValuesTest.php, line 25

Class

MultipleValuesTest
@coversDefaultClass \Drupal\migrate_plus\Plugin\migrate\process\MultipleValues @group migrate

Namespace

Drupal\Tests\migrate_plus\Unit\process

Code

public function testTreatAsMultiple() {
  $value = [
    'v1',
    'v2',
    'v3',
  ];
  $output = $this->plugin
    ->transform($value, $this->migrateExecutable, $this->row, 'destinationproperty');
  $this
    ->assertSame($output, $value);
  $this
    ->assertTrue($this->plugin
    ->multiple());
}