function ExplodeTest::testTransform
Same name in other branches
- 8.9.x core/modules/migrate/tests/src/Unit/process/ExplodeTest.php \Drupal\Tests\migrate\Unit\process\ExplodeTest::testTransform()
- 10 core/modules/migrate/tests/src/Unit/process/ExplodeTest.php \Drupal\Tests\migrate\Unit\process\ExplodeTest::testTransform()
- 11.x core/modules/migrate/tests/src/Unit/process/ExplodeTest.php \Drupal\Tests\migrate\Unit\process\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.