function ExtractTest::testExtract
Tests successful extraction.
File
-
core/
modules/ migrate/ tests/ src/ Unit/ process/ ExtractTest.php, line 32
Class
Namespace
Drupal\Tests\migrate\Unit\processCode
public function testExtract() : void {
$value = $this->plugin
->transform([
'foo' => 'bar',
], $this->migrateExecutable, $this->row, 'destination_property');
$this->assertSame('bar', $value);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.