function MigrateSqlIdMapTest::testLookupSourceIdMapping

Same name in other branches
  1. 9 core/modules/migrate/tests/src/Unit/MigrateSqlIdMapTest.php \Drupal\Tests\migrate\Unit\MigrateSqlIdMapTest::testLookupSourceIdMapping()
  2. 8.9.x core/modules/migrate/tests/src/Unit/MigrateSqlIdMapTest.php \Drupal\Tests\migrate\Unit\MigrateSqlIdMapTest::testLookupSourceIdMapping()
  3. 11.x core/modules/migrate/tests/src/Unit/MigrateSqlIdMapTest.php \Drupal\Tests\migrate\Unit\MigrateSqlIdMapTest::testLookupSourceIdMapping()

Performs the source ID test on source and destination fields.

@dataProvider lookupSourceIdMappingDataProvider

Parameters

int $num_source_fields: Number of source fields to test.

int $num_destination_fields: Number of destination fields to test.

File

core/modules/migrate/tests/src/Unit/MigrateSqlIdMapTest.php, line 627

Class

MigrateSqlIdMapTest
Tests the SQL ID map plugin.

Namespace

Drupal\Tests\migrate\Unit

Code

public function testLookupSourceIdMapping($num_source_fields, $num_destination_fields) : void {
    $source_id_property_prefix = 'source_id_property_';
    $this->doTestLookupSourceIdMapping($num_source_fields, $num_destination_fields, $source_id_property_prefix);
}

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