15 calls to Database::removeConnection() in Drupal 9
- ConnectionUnitTest::testConnectionOpen in core/
tests/ Drupal/ KernelTests/ Core/ Database/ ConnectionUnitTest.php - Tests pdo options override.
- DbCommandBase::getDatabaseConnection in core/
lib/ Drupal/ Core/ Command/ DbCommandBase.php - Parse input options decide on a database.
- DbCommandBaseTest::testSpecifyDbUrl in core/
modules/ system/ tests/ src/ Kernel/ Scripts/ DbCommandBaseTest.php - Tests supplying database connection as a url.
- DirectoryTest::testMultiplePrepareDirectory in core/
tests/ Drupal/ KernelTests/ Core/ File/ DirectoryTest.php - Tests asynchronous directory creation.
- FunctionalTestSetupTrait::doInstall in core/
lib/ Drupal/ Core/ Test/ FunctionalTestSetupTrait.php - Execute the non-interactive installer.
- KernelTestBase::bootEnvironment in core/
tests/ Drupal/ KernelTests/ KernelTestBase.php - Bootstraps a basic test environment.
- KernelTestBase::tearDownCloseDatabaseConnection in core/
tests/ Drupal/ KernelTests/ KernelTestBase.php - @after
- MigrateTestBase::cleanupMigrateConnection in core/
modules/ migrate/ tests/ src/ Kernel/ MigrateTestBase.php - Cleans up the test migrate connection.
- MigrateUpgradeTestBase::tearDown in core/
modules/ migrate_drupal_ui/ tests/ src/ Functional/ MigrateUpgradeTestBase.php - PrefixInfoTest::testGetPrefixInfo in core/
tests/ Drupal/ KernelTests/ Core/ Database/ PrefixInfoTest.php - Tests that DatabaseSchema::getPrefixInfo() returns the right database.
- 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/ pgsql/ 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.
- TestSetupTrait::changeDatabasePrefix in core/
lib/ Drupal/ Core/ Test/ TestSetupTrait.php - Changes the database connection to the prefixed one.
- TestSiteInstallCommand::changeDatabasePrefix in core/
tests/ Drupal/ TestSite/ Commands/ TestSiteInstallCommand.php