function MigrateSqlIdMapTest::getHighestIdInvalidDataProvider

Same name in other branches
  1. 9 core/modules/migrate/tests/src/Unit/MigrateSqlIdMapTest.php \Drupal\Tests\migrate\Unit\MigrateSqlIdMapTest::getHighestIdInvalidDataProvider()
  2. 8.9.x core/modules/migrate/tests/src/Unit/MigrateSqlIdMapTest.php \Drupal\Tests\migrate\Unit\MigrateSqlIdMapTest::getHighestIdInvalidDataProvider()
  3. 10 core/modules/migrate/tests/src/Unit/MigrateSqlIdMapTest.php \Drupal\Tests\migrate\Unit\MigrateSqlIdMapTest::getHighestIdInvalidDataProvider()

Data provider for testGetHighestIdInvalid().

Scenarios to test:

  • Destination ID type string.
  • Destination ID types int (not integer) and string.

Return value

array An array of data values.

File

core/modules/migrate/tests/src/Unit/MigrateSqlIdMapTest.php, line 1198

Class

MigrateSqlIdMapTest
Tests the SQL ID map plugin.

Namespace

Drupal\Tests\migrate\Unit

Code

public static function getHighestIdInvalidDataProvider() {
    return [
        'Destination ID type string' => [
            'destination_ids' => [
                'language' => [
                    'type' => 'string',
                ],
            ],
        ],
        'Destination ID types int (not integer) and string' => [
            'destination_ids' => [
                'nid' => [
                    'type' => 'int',
                ],
                'language' => [
                    'type' => 'string',
                ],
            ],
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.