You are here

public function MigrateSqlIdMapTest::errorCountDataProvider in Drupal 8

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

Class

MigrateSqlIdMapTest
Tests the SQL ID map plugin.

Namespace

Drupal\Tests\migrate\Unit

Code

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