function ExtractTest::testExtractFailDefault
Tests unsuccessful extraction.
File
- 
              core/modules/ migrate/ tests/ src/ Unit/ process/ ExtractTest.php, line 55 
Class
- ExtractTest
- @coversDefaultClass \Drupal\migrate\Plugin\migrate\process\Extract[[api-linebreak]] @group migrate
Namespace
Drupal\Tests\migrate\Unit\processCode
public function testExtractFailDefault() {
  $plugin = new Extract([
    'index' => [
      'foo',
    ],
    'default' => 'test',
  ], 'map', []);
  $value = $plugin->transform([
    'bar' => 'foo',
  ], $this->migrateExecutable, $this->row, 'destination_property');
  $this->assertSame('test', $value, '');
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
