You are here

public function MigrateSqlIdMapTest::lookupDestinationIdMappingDataProvider in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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.

File

core/modules/migrate/tests/src/Unit/MigrateSqlIdMapTest.php, line 355
Contains \Drupal\Tests\migrate\Unit\MigrateSqlIdMapTest.

Class

MigrateSqlIdMapTest
Tests the SQL ID map plugin.

Namespace

Drupal\Tests\migrate\Unit

Code

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