function RowTest::testRowWithMultipleSourceIds

Same name in other branches
  1. 9 core/modules/migrate/tests/src/Unit/RowTest.php \Drupal\Tests\migrate\Unit\RowTest::testRowWithMultipleSourceIds()
  2. 8.9.x core/modules/migrate/tests/src/Unit/RowTest.php \Drupal\Tests\migrate\Unit\RowTest::testRowWithMultipleSourceIds()
  3. 11.x 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 106

Class

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

Namespace

Drupal\Tests\migrate\Unit

Code

public function testRowWithMultipleSourceIds() : void {
    $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, multiple source id.');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.