function StaticMapTest::testMapWithSourceList
Tests map when the source is a list.
File
-
core/
modules/ migrate/ tests/ src/ Unit/ process/ StaticMapTest.php, line 39
Class
- StaticMapTest
- Tests the static map process plugin.
Namespace
Drupal\Tests\migrate\Unit\processCode
public function testMapWithSourceList() : void {
$value = $this->plugin
->transform([
'foo',
'bar',
], $this->migrateExecutable, $this->row, 'destination_property');
$this->assertSame('baz', $value);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.