You are here

public function MigrateSqlIdMapTest::lookupSourceIdMappingDataProvider in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/tests/src/Unit/MigrateSqlIdMapTest.php \Drupal\Tests\migrate\Unit\MigrateSqlIdMapTest::lookupSourceIdMappingDataProvider()
  2. 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\Unit

Code

public function lookupSourceIdMappingDataProvider() {
  return [
    [
      1,
      1,
    ],
    [
      2,
      2,
    ],
    [
      1,
      2,
    ],
    [
      2,
      1,
    ],
  ];
}