only in patch2: unchanged: --- a/core/modules/migrate/tests/src/Unit/RowTest.php +++ b/core/modules/migrate/tests/src/Unit/RowTest.php @@ -197,6 +197,39 @@ public function testSourceIdValues() { } /** + * Tests the multiple source IDs. + */ + public function testMultipleSourceIdValues() { + // Set values in same order as ids. + $multi_source_ids = $this->testSourceIds + array( + 'vid' => 'Node revision', + 'type' => 'Node type', + 'langcode' => 'Node language', + ); + $multi_source_ids_values = $this->testValues + array( + 'vid' => 1, + 'type' => 'page', + 'langcode' => 'en', + ); + $row = new Row($multi_source_ids_values, $multi_source_ids); + $this->assertSame(array_keys($multi_source_ids), array_keys($row->getSourceIdValues())); + + // Set values in different order. + $multi_source_ids = $this->testSourceIds + array( + 'vid' => 'Node revision', + 'type' => 'Node type', + 'langcode' => 'Node language', + ); + $multi_source_ids_values = $this->testValues + array( + 'langcode' => 'en', + 'type' => 'page', + 'vid' => 1, + ); + $row = new Row($multi_source_ids_values, $multi_source_ids); + $this->assertSame(array_keys($multi_source_ids), array_keys($row->getSourceIdValues())); + } + + /** * Tests getting the source property. * * @covers ::getSourceProperty