55 calls to Database::getConnectionInfo() in Drupal 10
- BrowserTestBase::cleanupEnvironment in core/
tests/ Drupal/ Tests/ BrowserTestBase.php - Clean up the test 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.
- 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.
- 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.
- DatabaseDriverProvidedByModuleTest::testDatabaseDriverIsProvidedByModuleButTheModuleIsNotEnabled in core/
modules/ system/ tests/ src/ Functional/ System/ DatabaseDriverProvidedByModuleTest.php - Tests that the status page shows the error message.
- DatabaseExceptionWrapperTest::testPrepareStatementFailOnPreparation in core/
tests/ Drupal/ KernelTests/ Core/ Database/ 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.
- DistributionProfileExistingSettingsTest::prepareEnvironment in core/
tests/ Drupal/ FunctionalTests/ Installer/ DistributionProfileExistingSettingsTest.php - Prepares the current environment for running the test.
- Error::decodeException in core/
lib/ Drupal/ Core/ Utility/ Error.php - Decodes an exception and retrieves the correct caller.
- FunctionalTestSetupTrait::installParameters in core/
lib/ Drupal/ Core/ Test/ FunctionalTestSetupTrait.php - Returns the parameters that will be used when the test 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.
- 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.
- InstallerExistingSettingsTest::prepareEnvironment in core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerExistingSettingsTest.php - Fully configures a preexisting settings.php file before invoking the interactive installer.
- InstallerNonDefaultDatabaseDriverTest::testInstalled in core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerNonDefaultDatabaseDriverTest.php - Confirms that the installation succeeded.
- 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 - KernelTestBaseDatabaseDriverModuleTest::getDatabaseConnectionInfo in core/
tests/ Drupal/ KernelTests/ KernelTestBaseDatabaseDriverModuleTest.php - Returns the Database connection info to be used for this test.
- Log::findCaller in core/
lib/ Drupal/ Core/ Database/ Log.php - Determine the routine that called this query.
- 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.
- MigrateUpgradeTestBase::createMigrationConnection in core/
modules/ migrate_drupal_ui/ tests/ src/ Functional/ MigrateUpgradeTestBase.php - Changes the database connection to the prefixed one.
- MigrationPluginListTest::testGetDefinitions in core/
modules/ migrate/ tests/ src/ Kernel/ Plugin/ MigrationPluginListTest.php - @covers ::getDefinitions
- NextIdTest::testDbNextIdClosedConnection in core/
tests/ Drupal/ KernelTests/ Core/ Database/ NextIdTest.php - Tests that sequences table clear up works when a connection is closed.
- 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.
- RequirementsTest::setUp in core/
modules/ mysql/ tests/ src/ Functional/ RequirementsTest.php - SettingsTest::testDatabaseInfoInitialization in core/
tests/ Drupal/ Tests/ Core/ Site/ SettingsTest.php - Tests initialization performed for the $databases variable.
- SiteSettingsForm::buildForm in core/
lib/ Drupal/ Core/ Installer/ Form/ SiteSettingsForm.php - Form constructor.
- 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/ sqlite/ src/ Driver/ Database/ sqlite/ Install/ Tasks.php - Checks if we can connect to the database.
- 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.
- 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.
- 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.