You are here

public function SkipOnValueTest::testProcessSkipsOnMultipleValue in Migrate Plus 8.3

Same name and namespace in other branches
  1. 8.5 tests/src/Unit/process/SkipOnValueTest.php \Drupal\Tests\migrate_plus\Unit\process\SkipOnValueTest::testProcessSkipsOnMultipleValue()
  2. 8.2 tests/src/Unit/process/SkipOnValueTest.php \Drupal\Tests\migrate_plus\Unit\process\SkipOnValueTest::testProcessSkipsOnMultipleValue()
  3. 8.4 tests/src/Unit/process/SkipOnValueTest.php \Drupal\Tests\migrate_plus\Unit\process\SkipOnValueTest::testProcessSkipsOnMultipleValue()

@covers ::process @expectedException \Drupal\migrate\MigrateSkipProcessException

File

tests/src/Unit/process/SkipOnValueTest.php, line 31

Class

SkipOnValueTest
Tests the skip on value process plugin.

Namespace

Drupal\Tests\migrate_plus\Unit\process

Code

public function testProcessSkipsOnMultipleValue() {
  $configuration['method'] = 'process';
  $configuration['value'] = [
    1,
    1,
    2,
    3,
    5,
    8,
  ];
  (new SkipOnValue($configuration, 'skip_on_value', []))
    ->transform('5', $this->migrateExecutable, $this->row, 'destinationproperty');
}