You are here

public function SqlTest::providerTestEnsureTables in Drupal 10

Same name and namespace in other branches
  1. 9 core/modules/migrate/tests/src/Kernel/Plugin/id_map/SqlTest.php \Drupal\Tests\migrate\Kernel\Plugin\id_map\SqlTest::providerTestEnsureTables()

Provides data for testEnsureTables.

File

core/modules/migrate/tests/src/Kernel/Plugin/id_map/SqlTest.php, line 101

Class

SqlTest
Tests that the migrate map table is created.

Namespace

Drupal\Tests\migrate\Kernel\Plugin\id_map

Code

public function providerTestEnsureTables() {
  return [
    'no ids' => [
      [],
    ],
    'one id' => [
      [
        'alpha' => [
          'type' => 'string',
        ],
      ],
    ],
    'too many' => [
      [
        'alpha' => [
          'type' => 'string',
        ],
        'bravo' => [
          'type' => 'string',
        ],
        'charlie' => [
          'type' => 'string',
        ],
        'delta' => [
          'type' => 'string',
        ],
        'echo ' => [
          'type' => 'string',
        ],
      ],
    ],
  ];
}