function ExplodeTest::testTransform
Tests explode transform process works.
File
-
core/
modules/ migrate/ tests/ src/ Unit/ process/ ExplodeTest.php, line 30
Class
- ExplodeTest
- Tests the Explode process plugin.
Namespace
Drupal\Tests\migrate\Unit\processCode
public function testTransform() {
$value = $this->plugin
->transform('foo,bar,tik', $this->migrateExecutable, $this->row, 'destination_property');
$this->assertSame([
'foo',
'bar',
'tik',
], $value);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.