You are here

public function ExtractTest::testExtract in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/tests/src/Unit/process/ExtractTest.php \Drupal\Tests\migrate\Unit\process\ExtractTest::testExtract()

Tests successful extraction.

File

core/modules/migrate/tests/src/Unit/process/ExtractTest.php, line 29
Contains \Drupal\Tests\migrate\Unit\process\ExtractTest.

Class

ExtractTest
@coversDefaultClass \Drupal\migrate\Plugin\migrate\process\Extract @group migrate

Namespace

Drupal\Tests\migrate\Unit\process

Code

public function testExtract() {
  $value = $this->plugin
    ->transform(array(
    'foo' => 'bar',
  ), $this->migrateExecutable, $this->row, 'destinationproperty');
  $this
    ->assertSame($value, 'bar');
}