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