50 calls to Database::addConnectionInfo()

ConnectionTest::testConnectionOptions in core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php
Tests the connection options of the active database.
ConnectionTest::testConnectionRouting in core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php
Tests that connections return appropriate connection objects.
ConnectionTest::testConnectionRoutingOverride in core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php
Tests that connections return appropriate connection objects.
ConnectionTest::testFindCallerFromDebugBacktrace in core/tests/Drupal/Tests/Core/Database/ConnectionTest.php
Tests that the proper caller is retrieved from the backtrace.
ConnectionTest::testPerTablePrefixOption in core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php
Tests per-table prefix connection option.
ConnectionTest::testPrefixArrayOption in core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php
Tests the prefix connection option in array form.
Database::setMultipleConnectionInfo in core/lib/Drupal/Core/Database/Database.php
Sets connection information for multiple databases.
DatabaseExceptionWrapperTest::testPrepareStatementFailOnPreparation in core/modules/mysql/tests/src/Kernel/mysql/DatabaseExceptionWrapperTest.php
Tests Connection::prepareStatement exceptions on preparation.
DatabaseStorageTest::testConcurrent in core/tests/Drupal/KernelTests/Core/KeyValueStore/DatabaseStorageTest.php
Tests asynchronous table creation.
DbCommandBase::getDatabaseConnection in core/lib/Drupal/Core/Command/DbCommandBase.php
Parse input options decide on a database.
DbCommandBaseTest::testPrefix in core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php
Tests specifying a prefix for different connections.
DbCommandBaseTest::testSpecifyDatabaseKey in core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php
Tests specifying a database key.
DbImportCommandTest::testDbImportCommand in core/modules/system/tests/src/Kernel/Scripts/DbImportCommandTest.php
Tests the command directly.
DbLog::log in core/modules/dblog/src/Logger/DbLog.php
DriverSpecificConnectionUnitTestBase::setUp in core/tests/Drupal/KernelTests/Core/Database/DriverSpecificConnectionUnitTestBase.php
DriverSpecificConnectionUnitTestBase::testConnectionOpen in core/tests/Drupal/KernelTests/Core/Database/DriverSpecificConnectionUnitTestBase.php
Tests pdo options override.
DriverSpecificTransactionTestBase::testTransactionManagerFailureOnPendingStackItems in core/tests/Drupal/KernelTests/Core/Database/DriverSpecificTransactionTestBase.php
Tests TransactionManager failure.
InstallerIsolationLevelExistingSettingsTest::testInstaller in core/modules/mysql/tests/src/Functional/InstallerIsolationLevelExistingSettingsTest.php
Verifies that isolation_level is not set in the database settings.
InstallerIsolationLevelNoDatabaseSettingsTest::testInstaller in core/modules/mysql/tests/src/Functional/InstallerIsolationLevelNoDatabaseSettingsTest.php
Verifies that the isolation_level was added to the database settings.
InstallerNonDefaultDatabaseDriverTest::testInstalled in core/tests/Drupal/FunctionalTests/Installer/InstallerNonDefaultDatabaseDriverTest.php
Confirms that the installation succeeded.
install_database_errors in core/includes/install.core.inc
Checks a database connection and returns any errors.
KernelTestBase::bootEnvironment in core/tests/Drupal/KernelTests/KernelTestBase.php
Bootstraps a basic test environment.
KernelTestBase::getDatabaseConnectionInfo in core/tests/Drupal/KernelTests/KernelTestBase.php
Returns the Database connection info to be used for this test.
KernelTestBaseDatabaseDriverModuleTest::getDatabaseConnectionInfo in core/tests/Drupal/KernelTests/KernelTestBaseDatabaseDriverModuleTest.php
Returns the Database connection info to be used for this test.
LoggingTest::testContribDriverLog in core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php
Tests that a log called by a custom database driver returns proper caller.
LoggingTest::testEnableMultiConnectionLogging in core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php
Tests that we can log queries separately on different connections.
LoggingTest::testEnableTargetLogging in core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php
Tests logging queries against multiple targets on the same connection.
LogTest::testContribDriverLog in core/tests/Drupal/Tests/Core/Database/LogTest.php
Tests that a log called by a custom database driver returns proper caller.
MigrateMissingDatabaseTest::setUp in core/modules/migrate_drupal/tests/src/Kernel/MigrateMissingDatabaseTest.php
MigrateMissingDatabaseTest::setUp in core/modules/migrate/tests/src/Kernel/MigrateMissingDatabaseTest.php
MigrateTestBase::createMigrationConnection in core/modules/migrate/tests/src/Kernel/MigrateTestBase.php
Changes the database connection to the prefixed one.
MigrateUpgradeTestBase::createMigrationConnection in core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php
Changes the database connection to the prefixed one.
MigrationConfigurationTrait::getConnection in core/modules/migrate_drupal/src/MigrationConfigurationTrait.php
Gets the database connection for the source Drupal database.
MigrationPluginListTest::testGetDefinitions in core/modules/migrate/tests/src/Kernel/Plugin/MigrationPluginListTest.php
@covers ::getDefinitions
NextIdTest::testDbNextIdClosedConnection in core/modules/mysql/tests/src/Kernel/mysql/NextIdTest.php
Tests that sequences table clear up works when a connection is closed.
NonPublicSchemaTest::setUp in core/modules/pgsql/tests/src/Kernel/pgsql/NonPublicSchemaTest.php
PrefixInfoTest::testGetPrefixInfo in core/modules/mysql/tests/src/Kernel/mysql/PrefixInfoTest.php
Tests that DatabaseSchema::getPrefixInfo() returns the right database.
ReplicaKillSwitchTest::testSystemInitIgnoresSecondaries in core/tests/Drupal/KernelTests/Core/Database/ReplicaKillSwitchTest.php
Tests database.replica_kill_switch service.
SqlBase::setUpDatabase in core/modules/migrate/src/Plugin/migrate/source/SqlBase.php
Gets a connection to the referenced database.
SqlBaseTest::testConnectionTypes in core/modules/migrate/tests/src/Kernel/SqlBaseTest.php
Tests different connection types.
SqlQueryTest::testGetConnection in core/modules/views/tests/src/Kernel/Plugin/SqlQueryTest.php
Tests the method \Drupal\views\Plugin\views\query\Sql::getConnection().
Tasks::connect in core/modules/pgsql/src/Driver/Database/pgsql/Install/Tasks.php
Checks if we can connect to the database.
Tasks::connect in core/modules/mysql/src/Driver/Database/mysql/Install/Tasks.php
Checks if we can connect to the database.
Tasks::connect in core/modules/sqlite/src/Driver/Database/sqlite/Install/Tasks.php
Checks if we can connect to the database.
TestSetupTrait::changeDatabasePrefix in core/lib/Drupal/Core/Test/TestSetupTrait.php
Changes the database connection to the prefixed one.
TestSetupTraitTest::testChangeDatabasePrefix in core/tests/Drupal/Tests/Core/Test/TestSetupTraitTest.php
Tests the SIMPLETEST_DB environment variable is used.
TestSiteApplicationTest::addTestDatabase in core/tests/Drupal/Tests/Scripts/TestSiteApplicationTest.php
Adds the installed test site to the database connection info.
TestSiteTearDownCommand::tearDown in core/tests/Drupal/TestSite/Commands/TestSiteTearDownCommand.php
Removes a given instance by deleting all the database tables and files.
UrlConversionTest::testGetConnectionInfoAsUrl in core/tests/Drupal/Tests/Core/Database/UrlConversionTest.php
@covers ::getConnectionInfoAsUrl
UrlConversionTest::testGetInvalidArgumentGetConnectionInfoAsUrl in core/tests/Drupal/Tests/Core/Database/UrlConversionTest.php
Tests ::getConnectionInfoAsUrl() exception for invalid arguments.

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