function SqlTest::providerTestEnsureTables

Same name in other branches
  1. 10 core/modules/migrate/tests/src/Kernel/Plugin/id_map/SqlTest.php \Drupal\Tests\migrate\Kernel\Plugin\id_map\SqlTest::providerTestEnsureTables()
  2. 11.x 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',
                ],
            ],
        ],
    ];
}

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