Skip to content
Snippets Groups Projects

Issue #3261275: Throw consistent exceptions on \Drupal\migrate_plus\Plugin\migrate\process\SkipOnValue process plugin

Merged Issue #3261275: Throw consistent exceptions on \Drupal\migrate_plus\Plugin\migrate\process\SkipOnValue process plugin
All threads resolved!
All threads resolved!
1 file
+ 5
14
Compare changes
  • Side-by-side
  • Inline
  • bec7c1c4
    Issue #3261275: Throw consistent exceptions on... · bec7c1c4
    Nazar Velychenko authored
    Issue #3261275: Throw consistent exceptions on \Drupal\migrate_plus\Plugin\migrate\process\SkipOnValue process plugin
@@ -123,23 +123,14 @@ class SkipOnValueTest extends MigrateProcessTestCase {
}
/**
* @covers ::row
* @covers ::__construct
*/
public function testRequiredRowConfiguration(): void {
public function testRequiredConfiguration() {
// It doesn't meter which method we will put here, because it should throw
// error on contraction of Plugin.
$configuration['method'] = 'row';
$this->expectException(\InvalidArgumentException::class);
(new SkipOnValue($configuration, 'skip_on_value', []))
->transform('sourcevalue', $this->migrateExecutable, $this->row, 'destinationproperty');
}
/**
* @covers ::process
*/
public function testRequiredProcessConfiguration(): void {
$configuration['method'] = 'process';
$this->expectException(\InvalidArgumentException::class);
(new SkipOnValue($configuration, 'skip_on_value', []))
->transform('sourcevalue', $this->migrateExecutable, $this->row, 'destinationproperty');
(new SkipOnValue($configuration, 'skip_on_value', []));
}
}
Loading