public function MigrateSqlIdMapTest::lookupSourceIDMappingDataProvider in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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.
File
- core/
modules/ migrate/ tests/ src/ Unit/ MigrateSqlIdMapTest.php, line 439 - Contains \Drupal\Tests\migrate\Unit\MigrateSqlIdMapTest.
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,
],
];
}