You are here

public function SkipOnEmptyTest::testProcessSkipsOnEmpty in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/migrate/tests/src/Unit/process/SkipOnEmptyTest.php \Drupal\Tests\migrate\Unit\process\SkipOnEmptyTest::testProcessSkipsOnEmpty()

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

File

core/modules/migrate/tests/src/Unit/process/SkipOnEmptyTest.php, line 24
Contains \Drupal\Tests\migrate\Unit\process\SkipOnEmptyTest.

Class

SkipOnEmptyTest
Tests the skip on empty process plugin.

Namespace

Drupal\Tests\migrate\Unit\process

Code

public function testProcessSkipsOnEmpty() {
  $configuration['method'] = 'process';
  (new SkipOnEmpty($configuration, 'skip_on_empty', []))
    ->transform('', $this->migrateExecutable, $this->row, 'destinationproperty');
}