function ConcatTest::testConcatWithDelimiter

Same name in other branches
  1. 9 core/modules/migrate/tests/src/Unit/process/ConcatTest.php \Drupal\Tests\migrate\Unit\process\ConcatTest::testConcatWithDelimiter()
  2. 8.9.x core/modules/migrate/tests/src/Unit/process/ConcatTest.php \Drupal\Tests\migrate\Unit\process\ConcatTest::testConcatWithDelimiter()
  3. 10 core/modules/migrate/tests/src/Unit/process/ConcatTest.php \Drupal\Tests\migrate\Unit\process\ConcatTest::testConcatWithDelimiter()

Tests concat works without a delimiter.

File

core/modules/migrate/tests/src/Unit/process/ConcatTest.php, line 44

Class

ConcatTest
Tests the concat process plugin.

Namespace

Drupal\Tests\migrate\Unit\process

Code

public function testConcatWithDelimiter() : void {
    $this->plugin
        ->setDelimiter('_');
    $value = $this->plugin
        ->transform([
        'foo',
        'bar',
    ], $this->migrateExecutable, $this->row, 'destination_property');
    $this->assertSame('foo_bar', $value);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.