You are here

public function ArrayPopTest::testArrayPopFromString in Migrate Plus 8.5

Same name and namespace in other branches
  1. 8.4 tests/src/Unit/process/ArrayPopTest.php \Drupal\Tests\migrate_plus\Unit\process\ArrayPopTest::testArrayPopFromString()

Test invalid input.

File

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

Class

ArrayPopTest
Tests the array pop process plugin.

Namespace

Drupal\Tests\migrate_plus\Unit\process

Code

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