You are here

public function ConcatTest::testConcatWithNonArray in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/migrate/tests/src/Unit/process/ConcatTest.php \Drupal\Tests\migrate\Unit\process\ConcatTest::testConcatWithNonArray()

Test concat fails properly on non-arrays.

@expectedException \Drupal\migrate\MigrateException

File

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

Class

ConcatTest
Tests the concat process plugin.

Namespace

Drupal\Tests\migrate\Unit\process

Code

public function testConcatWithNonArray() {
  $this->plugin
    ->transform('foo', $this->migrateExecutable, $this->row, 'destinationproperty');
}