function SettingsTest::providerTestDatabaseInfoInitialization

Same name in other branches
  1. 10 core/tests/Drupal/Tests/Core/Site/SettingsTest.php \Drupal\Tests\Core\Site\SettingsTest::providerTestDatabaseInfoInitialization()
  2. 11.x core/tests/Drupal/Tests/Core/Site/SettingsTest.php \Drupal\Tests\Core\Site\SettingsTest::providerTestDatabaseInfoInitialization()

Provides data for testDatabaseInfoInitialization().

File

core/tests/Drupal/Tests/Core/Site/SettingsTest.php, line 385

Class

SettingsTest
@coversDefaultClass \Drupal\Core\Site\Settings @runTestsInSeparateProcesses @group Site

Namespace

Drupal\Tests\Core\Site

Code

public function providerTestDatabaseInfoInitialization() : array {
    return [
        [
            'mysql',
            NULL,
            NULL,
            'Drupal\\mysql\\Driver\\Database\\mysql',
            'core/modules/mysql/src/Driver/Database/mysql/',
        ],
        [
            'mysql',
            '',
            NULL,
            'Drupal\\mysql\\Driver\\Database\\mysql',
            'core/modules/mysql/src/Driver/Database/mysql/',
        ],
        [
            'mysql',
            'Drupal\\Core\\Database\\Driver\\mysql',
            NULL,
            'Drupal\\mysql\\Driver\\Database\\mysql',
            'core/modules/mysql/src/Driver/Database/mysql/',
        ],
        [
            'mysql',
            'Drupal\\mysql\\Driver\\Database\\mysql',
            NULL,
            'Drupal\\mysql\\Driver\\Database\\mysql',
            'core/modules/mysql/src/Driver/Database/mysql/',
        ],
        [
            'mysql',
            'Drupal\\Driver\\Database\\mysql',
            NULL,
            'Drupal\\Driver\\Database\\mysql',
            NULL,
        ],
        [
            'mysql',
            'Drupal\\mysql\\Driver\\Database\\mysql',
            'modules/custom/mysql/src/Driver/Database/mysql/',
            'Drupal\\mysql\\Driver\\Database\\mysql',
            'modules/custom/mysql/src/Driver/Database/mysql/',
        ],
        [
            'pgsql',
            NULL,
            NULL,
            'Drupal\\pgsql\\Driver\\Database\\pgsql',
            'core/modules/pgsql/src/Driver/Database/pgsql/',
        ],
        [
            'pgsql',
            '',
            NULL,
            'Drupal\\pgsql\\Driver\\Database\\pgsql',
            'core/modules/pgsql/src/Driver/Database/pgsql/',
        ],
        [
            'pgsql',
            'Drupal\\Core\\Database\\Driver\\pgsql',
            NULL,
            'Drupal\\pgsql\\Driver\\Database\\pgsql',
            'core/modules/pgsql/src/Driver/Database/pgsql/',
        ],
        [
            'pgsql',
            'Drupal\\pgsql\\Driver\\Database\\pgsql',
            NULL,
            'Drupal\\pgsql\\Driver\\Database\\pgsql',
            'core/modules/pgsql/src/Driver/Database/pgsql/',
        ],
        [
            'pgsql',
            'Drupal\\Driver\\Database\\pgsql',
            NULL,
            'Drupal\\Driver\\Database\\pgsql',
            NULL,
        ],
        [
            'pgsql',
            'Drupal\\pgsql\\Driver\\Database\\pgsql',
            'modules/custom/pgsql/src/Driver/Database/pgsql/',
            'Drupal\\pgsql\\Driver\\Database\\pgsql',
            'modules/custom/pgsql/src/Driver/Database/pgsql/',
        ],
        [
            'sqlite',
            NULL,
            NULL,
            'Drupal\\sqlite\\Driver\\Database\\sqlite',
            'core/modules/sqlite/src/Driver/Database/sqlite/',
        ],
        [
            'sqlite',
            '',
            NULL,
            'Drupal\\sqlite\\Driver\\Database\\sqlite',
            'core/modules/sqlite/src/Driver/Database/sqlite/',
        ],
        [
            'sqlite',
            'Drupal\\Core\\Database\\Driver\\sqlite',
            NULL,
            'Drupal\\sqlite\\Driver\\Database\\sqlite',
            'core/modules/sqlite/src/Driver/Database/sqlite/',
        ],
        [
            'sqlite',
            'Drupal\\sqlite\\Driver\\Database\\sqlite',
            NULL,
            'Drupal\\sqlite\\Driver\\Database\\sqlite',
            'core/modules/sqlite/src/Driver/Database/sqlite/',
        ],
        [
            'sqlite',
            'Drupal\\Driver\\Database\\sqlite',
            NULL,
            'Drupal\\Driver\\Database\\sqlite',
            NULL,
        ],
        [
            'sqlite',
            'Drupal\\sqlite\\Driver\\Database\\sqlite',
            'modules/custom/sqlite/src/Driver/Database/sqlite/',
            'Drupal\\sqlite\\Driver\\Database\\sqlite',
            'modules/custom/sqlite/src/Driver/Database/sqlite/',
        ],
    ];
}

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