public function SkipOnEmptyTest::testRowSkipsOnEmpty in Drupal 9
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Unit/process/SkipOnEmptyTest.php \Drupal\Tests\migrate\Unit\process\SkipOnEmptyTest::testRowSkipsOnEmpty()
- 10 core/modules/migrate/tests/src/Unit/process/SkipOnEmptyTest.php \Drupal\Tests\migrate\Unit\process\SkipOnEmptyTest::testRowSkipsOnEmpty()
@covers ::row
File
- core/
modules/ migrate/ tests/ src/ Unit/ process/ SkipOnEmptyTest.php, line 40
Class
- SkipOnEmptyTest
- Tests the skip on empty process plugin.
Namespace
Drupal\Tests\migrate\Unit\processCode
public function testRowSkipsOnEmpty() {
$configuration['method'] = 'row';
$this
->expectException(MigrateSkipRowException::class);
(new SkipOnEmpty($configuration, 'skip_on_empty', []))
->transform('', $this->migrateExecutable, $this->row, 'destination_property');
}