public function MigrateSqlIdMapTest::lookupSourceIdMappingDataProvider in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Unit/MigrateSqlIdMapTest.php \Drupal\Tests\migrate\Unit\MigrateSqlIdMapTest::lookupSourceIdMappingDataProvider()
- 9 core/modules/migrate/tests/src/Unit/MigrateSqlIdMapTest.php \Drupal\Tests\migrate\Unit\MigrateSqlIdMapTest::lookupSourceIdMappingDataProvider()
Data provider for testLookupSourceIdMapping().
Scenarios to test (for both hits and misses) are:
- Single-value destination ID to single-value source ID.
- Multi-value destination ID to multi-value source ID.
- Single-value destination ID to multi-value source ID.
- Multi-value destination ID to single-value source ID.
Return value
array An array of data values.
File
- core/
modules/ migrate/ tests/ src/ Unit/ MigrateSqlIdMapTest.php, line 601
Class
- MigrateSqlIdMapTest
- Tests the SQL ID map plugin.
Namespace
Drupal\Tests\migrate\UnitCode
public function lookupSourceIdMappingDataProvider() {
return [
[
1,
1,
],
[
2,
2,
],
[
1,
2,
],
[
2,
1,
],
];
}