14 calls to Database::removeConnection() in Drupal 8
- 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 - Test supplying database connection as a url.
- 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.
- 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.
- TestSiteInstallCommand::changeDatabasePrefix in core/
tests/ Drupal/ TestSite/ Commands/ TestSiteInstallCommand.php