function SkipOnEmptyTest::testProcessBypassesOnNonEmpty

Same name in other branches
  1. 9 core/modules/migrate/tests/src/Unit/process/SkipOnEmptyTest.php \Drupal\Tests\migrate\Unit\process\SkipOnEmptyTest::testProcessBypassesOnNonEmpty()
  2. 8.9.x core/modules/migrate/tests/src/Unit/process/SkipOnEmptyTest.php \Drupal\Tests\migrate\Unit\process\SkipOnEmptyTest::testProcessBypassesOnNonEmpty()
  3. 11.x 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 32

Class

SkipOnEmptyTest
Tests the skip on empty process plugin.

Namespace

Drupal\Tests\migrate\Unit\process

Code

public function testProcessBypassesOnNonEmpty() : void {
    $configuration['method'] = 'process';
    $plugin = new SkipOnEmpty($configuration, 'skip_on_empty', []);
    $value = $plugin->transform(' ', $this->migrateExecutable, $this->row, 'destination_property');
    $this->assertSame(' ', $value);
    $this->assertFalse($plugin->isPipelineStopped());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.