function LanguageTypesTest::testStringInput
Same name and namespace in other branches
- 9 core/modules/language/tests/src/Unit/process/LanguageTypesTest.php \Drupal\Tests\language\Unit\process\LanguageTypesTest::testStringInput()
- 8.9.x core/modules/language/tests/src/Unit/process/LanguageTypesTest.php \Drupal\Tests\language\Unit\process\LanguageTypesTest::testStringInput()
- 10 core/modules/language/tests/src/Unit/process/LanguageTypesTest.php \Drupal\Tests\language\Unit\process\LanguageTypesTest::testStringInput()
Tests string input.
File
-
core/
modules/ language/ tests/ src/ Unit/ process/ LanguageTypesTest.php, line 56
Class
- LanguageTypesTest
- @coversDefaultClass <a href="/api/drupal/core%21modules%21language%21src%21Plugin%21migrate%21process%21LanguageTypes.php/class/LanguageTypes/11.x" title="Processes the array for the language types." class="local">\Drupal\language\Plugin\migrate\process\LanguageTypes</a> @group language
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.