You are here

public function ArrayShiftTest::testArrayShiftFromString in Migrate Plus 8.4

Same name and namespace in other branches
  1. 8.5 tests/src/Unit/process/ArrayShiftTest.php \Drupal\Tests\migrate_plus\Unit\process\ArrayShiftTest::testArrayShiftFromString()

Test invalid input.

File

tests/src/Unit/process/ArrayShiftTest.php, line 66

Class

ArrayShiftTest
Tests the array shift process plugin.

Namespace

Drupal\Tests\migrate_plus\Unit\process

Code

public function testArrayShiftFromString() {
  $this
    ->setExpectedException(MigrateException::class, 'Input should be an array.');
  $this->plugin
    ->transform('foo', $this->migrateExecutable, $this->row, 'destinationproperty');
}