You are here

public function ConcatTest::testConcatWithoutDelimiter in Drupal 8

Same name and namespace in other branches
  1. 9 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()

Test concat works without a delimiter.

File

core/modules/migrate/tests/src/Unit/process/ConcatTest.php, line 31
Contains \Drupal\Tests\migrate\Unit\process\ConcatTest.

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);
}