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