function MigrateSqlIdMapTest::errorCountDataProvider

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

Data provider for testErrorCount().

Scenarios to test for:

  • No errors.
  • One error.
  • Multiple errors.

Return value

array An array of data values.

File

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

Class

MigrateSqlIdMapTest
Tests the SQL ID map plugin.

Namespace

Drupal\Tests\migrate\Unit

Code

public static function errorCountDataProvider() {
    return [
        [
            0,
        ],
        [
            1,
        ],
        [
            3,
        ],
    ];
}

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