public function StaticMapTest::testMapWithSourceString in Drupal 9
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Unit/process/StaticMapTest.php \Drupal\Tests\migrate\Unit\process\StaticMapTest::testMapWithSourceString()
- 10 core/modules/migrate/tests/src/Unit/process/StaticMapTest.php \Drupal\Tests\migrate\Unit\process\StaticMapTest::testMapWithSourceString()
Tests map when the source is a string.
File
- core/
modules/ migrate/ tests/ src/ Unit/ process/ StaticMapTest.php, line 29
Class
- StaticMapTest
- Tests the static map process plugin.
Namespace
Drupal\Tests\migrate\Unit\processCode
public function testMapWithSourceString() {
$value = $this->plugin
->transform('foo', $this->migrateExecutable, $this->row, 'destination_property');
$this
->assertSame([
'bar' => 'baz',
], $value);
}