public function StaticMapTest::testMapWithSourceList in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Unit/process/StaticMapTest.php \Drupal\Tests\migrate\Unit\process\StaticMapTest::testMapWithSourceList()
Tests map when the source is a list.
File
- core/
modules/ migrate/ tests/ src/ Unit/ process/ StaticMapTest.php, line 38 - Contains \Drupal\Tests\migrate\Unit\process\StaticMapTest.
Class
- StaticMapTest
- Tests the static map process plugin.
Namespace
Drupal\Tests\migrate\Unit\processCode
public function testMapWithSourceList() {
$value = $this->plugin
->transform(array(
'foo',
'bar',
), $this->migrateExecutable, $this->row, 'destinationproperty');
$this
->assertSame($value, 'baz');
}