public function SqlTest::providerTestEnsureTables in Drupal 9
Same name and namespace in other branches
- 10 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 99
Class
- SqlTest
- Tests that the migrate map table is created.
Namespace
Drupal\Tests\migrate\Kernel\Plugin\id_mapCode
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',
],
],
],
];
}