public function ConcatTest::testConcatWithDelimiter in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate/tests/src/Unit/process/ConcatTest.php \Drupal\Tests\migrate\Unit\process\ConcatTest::testConcatWithDelimiter()
- 10 core/modules/migrate/tests/src/Unit/process/ConcatTest.php \Drupal\Tests\migrate\Unit\process\ConcatTest::testConcatWithDelimiter()
Test concat works without a delimiter.
File
- core/
modules/ migrate/ tests/ src/ Unit/ process/ ConcatTest.php, line 47 - Contains \Drupal\Tests\migrate\Unit\process\ConcatTest.
Class
- ConcatTest
- Tests the concat process plugin.
Namespace
Drupal\Tests\migrate\Unit\processCode
public function testConcatWithDelimiter() {
$this->plugin
->setDelimiter('_');
$value = $this->plugin
->transform([
'foo',
'bar',
], $this->migrateExecutable, $this->row, 'destination_property');
$this
->assertSame('foo_bar', $value);
}