47 calls to Database::getConnectionInfo()
- BrowserTestBase::cleanupEnvironment in core/
tests/ Drupal/ Tests/ BrowserTestBase.php - Clean up the Simpletest environment.
- 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.
- ConnectionUnitTest::addConnection in core/
tests/ Drupal/ KernelTests/ Core/ Database/ ConnectionUnitTest.php - Adds a new database connection info to Database.
- ConnectionUnitTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ Database/ ConnectionUnitTest.php - ConnectionUnitTest::testConnectionOpen in core/
tests/ Drupal/ KernelTests/ Core/ Database/ ConnectionUnitTest.php - Tests pdo options override.
- Database::getConnectionInfoAsUrl in core/
lib/ Drupal/ Core/ Database/ Database.php - Gets database connection info as a URL.
- DatabaseLegacyTest::testDbIgnoreReplica in core/
tests/ Drupal/ KernelTests/ Core/ Database/ DatabaseLegacyTest.php - Tests the db_ignore_replica() function.
- DbCommandBase::getDatabaseConnection in core/
lib/ Drupal/ Core/ Command/ DbCommandBase.php - Parse input options decide on a database.
- DbLog::log in core/
modules/ dblog/ src/ Logger/ DbLog.php - DistributionProfileExistingSettingsTest::prepareEnvironment in core/
tests/ Drupal/ FunctionalTests/ Installer/ DistributionProfileExistingSettingsTest.php - Prepares the current environment for running the test.
- DrupalKernel::handle in core/
lib/ Drupal/ Core/ DrupalKernel.php - FunctionalTestSetupTrait::installParameters in core/
lib/ Drupal/ Core/ Test/ FunctionalTestSetupTrait.php - Returns the parameters that will be used when Simpletest installs Drupal.
- InstallCommand::isDrupalInstalled in core/
lib/ Drupal/ Core/ Command/ InstallCommand.php - Returns whether there is already an existing Drupal installation.
- InstallerExistingBrokenDatabaseSettingsTest::prepareEnvironment in core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerExistingBrokenDatabaseSettingsTest.php - Prepares the current environment for running the test.
- InstallerExistingDatabaseSettingsTest::prepareEnvironment in core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerExistingDatabaseSettingsTest.php - Prepares the current environment for running the test.
- InstallerExistingSettingsMismatchProfileTest::prepareEnvironment in core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerExistingSettingsMismatchProfileTest.php - Configures a preexisting settings.php file without an install_profile setting before invoking the interactive installer.
- InstallerExistingSettingsNoProfileTest::prepareEnvironment in core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerExistingSettingsNoProfileTest.php - Configures a preexisting settings.php file without an install_profile setting before invoking the interactive installer.
- InstallerExistingSettingsReadOnlyMismatchProfileTest::prepareEnvironment in core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerExistingSettingsReadOnlyMismatchProfileTest.php - Configures a preexisting settings.php file without an install_profile setting before invoking the interactive installer.
- InstallerExistingSettingsTest::prepareEnvironment in core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerExistingSettingsTest.php - Fully configures a preexisting settings.php file before invoking the interactive installer.
- InstallerRedirectTrait::shouldRedirectToInstaller in core/
lib/ Drupal/ Core/ Installer/ InstallerRedirectTrait.php - Determines if an exception handler should redirect to the installer.
- install_check_requirements in core/
includes/ install.core.inc - Checks installation requirements and reports any errors.
- install_verify_database_ready in core/
includes/ install.core.inc - Verify that the database is ready (no existing Drupal installation).
- install_verify_database_settings in core/
includes/ install.core.inc - Verifies that settings.php specifies a valid database connection.
- KernelTestBase::bootKernel in core/
tests/ Drupal/ KernelTests/ KernelTestBase.php - Bootstraps a kernel for a test.
- KernelTestBase::getDatabaseConnectionInfo in core/
tests/ Drupal/ KernelTests/ KernelTestBase.php - Returns the Database connection info to be used for this test.
- KernelTestBase::tearDown in core/
tests/ Drupal/ KernelTests/ KernelTestBase.php - KernelTestBaseTest::run in core/
modules/ simpletest/ src/ Tests/ KernelTestBaseTest.php - Run all tests in this class.
- 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.
- MigrateTestBase::cleanupMigrateConnection in core/
modules/ migrate/ tests/ src/ Kernel/ MigrateTestBase.php - Cleans up the test migrate connection.
- MigrateTestBase::createMigrationConnection in core/
modules/ migrate/ tests/ src/ Kernel/ MigrateTestBase.php - Changes the database connection to the prefixed one.
- MigrationPluginListTest::testGetDefinitions in core/
modules/ migrate/ tests/ src/ Kernel/ Plugin/ MigrationPluginListTest.php - @covers ::getDefinitions
- PrefixInfoTest::testGetPrefixInfo in core/
tests/ Drupal/ KernelTests/ Core/ Database/ PrefixInfoTest.php - Tests that DatabaseSchema::getPrefixInfo() returns the right database.
- ReplicaKillSwitch::trigger in core/
lib/ Drupal/ Core/ Database/ ReplicaKillSwitch.php - Denies access to replica database on the current request.
- ReplicaKillSwitchTest::testSystemInitIgnoresSecondaries in core/
tests/ Drupal/ KernelTests/ Core/ Database/ ReplicaKillSwitchTest.php - Tests database.replica_kill_switch service.
- SchemaTest::testFindTables in core/
tests/ Drupal/ KernelTests/ Core/ Database/ SchemaTest.php - Tests the findTables() method.
- SiteSettingsForm::buildForm in core/
lib/ Drupal/ Core/ Installer/ Form/ SiteSettingsForm.php - Form constructor.
- Tasks::connect in core/
lib/ Drupal/ Core/ Database/ Driver/ sqlite/ Install/ Tasks.php - Check if we can connect to the database.
- Tasks::connect in core/
lib/ Drupal/ Core/ Database/ Driver/ mysql/ Install/ Tasks.php - Check if we can connect to the database.
- Tasks::connect in core/
lib/ Drupal/ Core/ Database/ Driver/ pgsql/ Install/ Tasks.php - Check if we can connect to the database.
- TestBase::restoreEnvironment in core/
modules/ simpletest/ src/ TestBase.php - Cleans up the test environment and restores the original environment.
- TestSetupTrait::changeDatabasePrefix in core/
lib/ Drupal/ Core/ Test/ TestSetupTrait.php - Changes the database connection to the prefixed one.
- UpdatePathTestBase::prepareSettings in core/
modules/ system/ src/ Tests/ Update/ UpdatePathTestBase.php - Add settings that are missed since the installer isn't run.
- UpdatePathTestBase::prepareSettings in core/
tests/ Drupal/ FunctionalTests/ Update/ UpdatePathTestBase.php - Add settings that are missed since the installer isn't run.
- UpdatePathTestBase::runDbTasks in core/
tests/ Drupal/ FunctionalTests/ Update/ UpdatePathTestBase.php - Runs the install database tasks for the driver used by the test runner.
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.