You are here

public function SkipOnEmptyTest::testProcessBypassesOnNonEmpty in Zircon Profile 8

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

@covers ::process

File

core/modules/migrate/tests/src/Unit/process/SkipOnEmptyTest.php, line 33
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 testProcessBypassesOnNonEmpty() {
  $configuration['method'] = 'process';
  $value = (new SkipOnEmpty($configuration, 'skip_on_empty', []))
    ->transform(' ', $this->migrateExecutable, $this->row, 'destinationproperty');
  $this
    ->assertSame($value, ' ');
}