function SqlTest::providerTestEnsureTables
Same name in other branches
- 9 core/modules/migrate/tests/src/Kernel/Plugin/id_map/SqlTest.php \Drupal\Tests\migrate\Kernel\Plugin\id_map\SqlTest::providerTestEnsureTables()
- 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 101
Class
- SqlTest
- Tests that the migrate map table is created.
Namespace
Drupal\Tests\migrate\Kernel\Plugin\id_mapCode
public static 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.