public function ExtractTest::testExtractFromString in Drupal 8
Tests invalid input.
File
- core/
modules/ migrate/ tests/ src/ Unit/ process/ ExtractTest.php, line 34
Class
- ExtractTest
- @coversDefaultClass \Drupal\migrate\Plugin\migrate\process\Extract @group migrate
Namespace
Drupal\Tests\migrate\Unit\processCode
public function testExtractFromString() {
$this
->expectException(MigrateException::class);
$this
->expectExceptionMessage('Input should be an array.');
$this->plugin
->transform('bar', $this->migrateExecutable, $this->row, 'destination_property');
}