public function ExplodeTest::testTransform in Drupal 8
Same name and namespace in other branches
- 9 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()
Test 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);
}