function LanguageTypesTest::testStringInput
Tests string input.
File
-
core/
modules/ language/ tests/ src/ Unit/ process/ LanguageTypesTest.php, line 59
Class
Namespace
Drupal\Tests\language\Unit\processCode
public function testStringInput() : void {
$this->plugin = new LanguageTypes([], 'map', []);
$this->expectException(MigrateException::class);
$this->expectExceptionMessage('The input should be an array');
$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.