function MigrateSqlIdMapTest::lookupDestinationIdMappingDataProvider
Same name in other branches
- 9 core/modules/migrate/tests/src/Unit/MigrateSqlIdMapTest.php \Drupal\Tests\migrate\Unit\MigrateSqlIdMapTest::lookupDestinationIdMappingDataProvider()
- 10 core/modules/migrate/tests/src/Unit/MigrateSqlIdMapTest.php \Drupal\Tests\migrate\Unit\MigrateSqlIdMapTest::lookupDestinationIdMappingDataProvider()
- 11.x core/modules/migrate/tests/src/Unit/MigrateSqlIdMapTest.php \Drupal\Tests\migrate\Unit\MigrateSqlIdMapTest::lookupDestinationIdMappingDataProvider()
Data provider for testLookupDestinationIdMapping().
Scenarios to test (for both hits and misses) are:
- Single-value source ID to single-value destination ID.
- Multi-value source ID to multi-value destination ID.
- Single-value source ID to multi-value destination ID.
- Multi-value source ID to single-value destination ID.
Return value
array An array of data values.
File
-
core/
modules/ migrate/ tests/ src/ Unit/ MigrateSqlIdMapTest.php, line 394
Class
- MigrateSqlIdMapTest
- Tests the SQL ID map plugin.
Namespace
Drupal\Tests\migrate\UnitCode
public function lookupDestinationIdMappingDataProvider() {
return [
[
1,
1,
],
[
2,
2,
],
[
1,
2,
],
[
2,
1,
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.