public function SkipOnValueTest::testProcessSkipsOnMultipleNonValue in Migrate Plus 8.3
Same name and namespace in other branches
- 8.5 tests/src/Unit/process/SkipOnValueTest.php \Drupal\Tests\migrate_plus\Unit\process\SkipOnValueTest::testProcessSkipsOnMultipleNonValue()
- 8.2 tests/src/Unit/process/SkipOnValueTest.php \Drupal\Tests\migrate_plus\Unit\process\SkipOnValueTest::testProcessSkipsOnMultipleNonValue()
- 8.4 tests/src/Unit/process/SkipOnValueTest.php \Drupal\Tests\migrate_plus\Unit\process\SkipOnValueTest::testProcessSkipsOnMultipleNonValue()
@covers ::process
File
- tests/
src/ Unit/ process/ SkipOnValueTest.php, line 57
Class
- SkipOnValueTest
- Tests the skip on value process plugin.
Namespace
Drupal\Tests\migrate_plus\Unit\processCode
public function testProcessSkipsOnMultipleNonValue() {
$configuration['method'] = 'process';
$configuration['value'] = [
1,
1,
2,
3,
5,
8,
];
$value = (new SkipOnValue($configuration, 'skip_on_value', []))
->transform(4, $this->migrateExecutable, $this->row, 'destinationproperty');
$this
->assertEquals($value, '4');
}