MultipleValuesTest.php in Migrate Plus 8.5
File
tests/src/Unit/process/MultipleValuesTest.php
View source
<?php
namespace Drupal\Tests\migrate_plus\Unit\process;
use Drupal\migrate_plus\Plugin\migrate\process\MultipleValues;
use Drupal\Tests\migrate\Unit\process\MigrateProcessTestCase;
class MultipleValuesTest extends MigrateProcessTestCase {
protected function setUp() : void {
$this->plugin = new MultipleValues([], 'multiple_values', []);
parent::setUp();
}
public function testTreatAsMultiple() : void {
$value = [
'v1',
'v2',
'v3',
];
$output = $this->plugin
->transform($value, $this->migrateExecutable, $this->row, 'destinationproperty');
$this
->assertSame($output, $value);
$this
->assertTrue($this->plugin
->multiple());
}
}