You are here

public function RowTest::testRowWithMultipleSourceIds in Zircon Profile 8

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

Tests object creation: multiple source IDs.

File

core/modules/migrate/tests/src/Unit/RowTest.php, line 72
Contains \Drupal\Tests\migrate\Unit\RowTest.

Class

RowTest
@coversDefaultClass \Drupal\migrate\Row @group migrate

Namespace

Drupal\Tests\migrate\Unit

Code

public function testRowWithMultipleSourceIds() {
  $multi_source_ids = $this->testSourceIds + array(
    'vid' => 'Node revision',
  );
  $multi_source_ids_values = $this->testValues + array(
    'vid' => 1,
  );
  $row = new Row($multi_source_ids_values, $multi_source_ids);
  $this
    ->assertSame($multi_source_ids_values, $row
    ->getSource(), 'Row with data, multifield id.');
}