function ExplodeTest::testExplodeWithStrictAndEmptyString
Tests Explode return values with an empty string and strict check.
File
- 
              core/
modules/ migrate/ tests/ src/ Unit/ process/ ExplodeTest.php, line 107  
Class
- ExplodeTest
 - Tests the Explode process plugin.
 
Namespace
Drupal\Tests\migrate\Unit\processCode
public function testExplodeWithStrictAndEmptyString() : void {
  $plugin = new Explode([
    'delimiter' => '|',
  ], 'map', []);
  $processed = $plugin->transform('', $this->migrateExecutable, $this->row, 'destination_property');
  $this->assertSame([
    '',
  ], $processed);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.