function DatabaseDriverListTest::providerDatabaseDrivers
Same name in other branches
- 10 core/tests/Drupal/Tests/Core/Extension/DatabaseDriverListTest.php \Drupal\Tests\Core\Extension\DatabaseDriverListTest::providerDatabaseDrivers()
Data provider for testLegacyGetFromDriverName().
File
-
core/
tests/ Drupal/ Tests/ Core/ Extension/ DatabaseDriverListTest.php, line 33
Class
- DatabaseDriverListTest
- Tests DatabaseDriverList methods.
Namespace
Drupal\Tests\Core\ExtensionCode
public static function providerDatabaseDrivers() : array {
return [
[
'mysql',
'mysql',
'Drupal\\mysql\\Driver\\Database\\mysql',
],
[
'pgsql',
'pgsql',
'Drupal\\pgsql\\Driver\\Database\\pgsql',
],
[
'sqlite',
'sqlite',
'Drupal\\sqlite\\Driver\\Database\\sqlite',
],
[
'DriverTestMysql',
'driver_test',
'Drupal\\driver_test\\Driver\\Database\\DriverTestMysql',
],
[
'DriverTestPgsql',
'driver_test',
'Drupal\\driver_test\\Driver\\Database\\DriverTestPgsql',
],
[
'DriverTestMysqlDeprecatedVersion',
'driver_test',
'Drupal\\driver_test\\Driver\\Database\\DriverTestMysqlDeprecatedVersion',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.