public function ExplodeTest::testChainedTransform in Drupal 9
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Unit/process/ExplodeTest.php \Drupal\Tests\migrate\Unit\process\ExplodeTest::testChainedTransform()
Tests if the explode process can be chained with handles_multiple process.
File
- core/
modules/ migrate/ tests/ src/ Unit/ process/ ExplodeTest.php, line 47
Class
- ExplodeTest
- Tests the Explode process plugin.
Namespace
Drupal\Tests\migrate\Unit\processCode
public function testChainedTransform() {
$exploded = $this->plugin
->transform('foo,bar,tik', $this->migrateExecutable, $this->row, 'destination_property');
$concat = new Concat([], 'map', []);
$concatenated = $concat
->transform($exploded, $this->migrateExecutable, $this->row, 'destination_property');
$this
->assertSame('foobartik', $concatenated);
}