function DatabaseDriverListTest::providerDatabaseDrivers

Same name in other branches
  1. 11.x 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 62

Class

DatabaseDriverListTest
Tests DatabaseDriverList methods.

Namespace

Drupal\Tests\Core\Extension

Code

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.