function ConcatTest::testConcatWithoutDelimiter

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

Tests concat works without a delimiter.

File

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

Class

ConcatTest
Tests the concat process plugin.

Namespace

Drupal\Tests\migrate\Unit\process

Code

public function testConcatWithoutDelimiter() {
    $value = $this->plugin
        ->transform([
        'foo',
        'bar',
    ], $this->migrateExecutable, $this->row, 'destination_property');
    $this->assertSame('foobar', $value);
}

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