function ExplodeTest::testExplodeWithEmptyDelimiter
Same name in other branches
- 9 core/modules/migrate/tests/src/Unit/process/ExplodeTest.php \Drupal\Tests\migrate\Unit\process\ExplodeTest::testExplodeWithEmptyDelimiter()
- 8.9.x core/modules/migrate/tests/src/Unit/process/ExplodeTest.php \Drupal\Tests\migrate\Unit\process\ExplodeTest::testExplodeWithEmptyDelimiter()
- 10 core/modules/migrate/tests/src/Unit/process/ExplodeTest.php \Drupal\Tests\migrate\Unit\process\ExplodeTest::testExplodeWithEmptyDelimiter()
Tests explode fails with empty delimiter.
File
-
core/
modules/ migrate/ tests/ src/ Unit/ process/ ExplodeTest.php, line 116
Class
- ExplodeTest
- Tests the Explode process plugin.
Namespace
Drupal\Tests\migrate\Unit\processCode
public function testExplodeWithEmptyDelimiter() : void {
$this->expectException(MigrateException::class);
$this->expectExceptionMessage('delimiter is empty');
$plugin = new Explode([
'delimiter' => '',
], 'map', []);
$plugin->transform('foo,bar', $this->migrateExecutable, $this->row, 'destination_property');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.