You are here

public function RowTest::testRowWithMultipleSourceIds in Drupal 9

Same name and namespace in other branches
  1. 8 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 104

Class

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

Namespace

Drupal\Tests\migrate\Unit

Code

public function testRowWithMultipleSourceIds() {
  $multi_source_ids = $this->testSourceIds + [
    'vid' => 'Node revision',
  ];
  $multi_source_ids_values = $this->testValues + [
    '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.');
}