function ConcatTest::testConcatWithNonArray

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

Test concat fails properly on non-arrays.

File

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

Class

ConcatTest
Tests the concat process plugin.

Namespace

Drupal\Tests\migrate\Unit\process

Code

public function testConcatWithNonArray() {
    $this->expectException(MigrateException::class);
    $this->plugin
        ->transform('foo', $this->migrateExecutable, $this->row, 'destination_property');
}

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