19 calls to Database::closeConnection()
- ConnectionFailureTest::testConnectionFailureLogging in core/
modules/ dblog/ tests/ src/ Kernel/ ConnectionFailureTest.php - Tests logging of connection failures.
- ConnectionTest::testConnectionClosing in core/
tests/ Drupal/ KernelTests/ Core/ Database/ ConnectionTest.php - Tests the closing of a database connection.
- Database::removeConnection in core/
lib/ Drupal/ Core/ Database/ Database.php - Remove a connection and its corresponding connection information.
- DriverSpecificConnectionUnitTestBase::testOpenClose in core/
tests/ Drupal/ KernelTests/ Core/ Database/ DriverSpecificConnectionUnitTestBase.php - Tests Database::closeConnection() without query.
- DriverSpecificConnectionUnitTestBase::testOpenQueryClose in core/
tests/ Drupal/ KernelTests/ Core/ Database/ DriverSpecificConnectionUnitTestBase.php - Tests Database::closeConnection() with a query.
- DriverSpecificConnectionUnitTestBase::testOpenQueryPrefetchClose in core/
tests/ Drupal/ KernelTests/ Core/ Database/ DriverSpecificConnectionUnitTestBase.php - Tests Database::closeConnection() with a query and custom prefetch method.
- DriverSpecificConnectionUnitTestBase::testOpenSelectQueryClose in core/
tests/ Drupal/ KernelTests/ Core/ Database/ DriverSpecificConnectionUnitTestBase.php - Tests Database::closeConnection() with a select query.
- 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.
- LargeQueryTest::testMaxAllowedPacketQueryTruncating in core/
modules/ mysql/ tests/ src/ Kernel/ mysql/ LargeQueryTest.php - Tests truncation of messages when max_allowed_packet exception occurs.
- NextIdTest::testDbNextIdClosedConnection in core/
modules/ mysql/ tests/ src/ Kernel/ mysql/ NextIdTest.php - Tests that sequences table clear up works when a connection is closed.
- SqlQueryTest::testGetConnection in core/
modules/ views/ tests/ src/ Kernel/ Plugin/ SqlQueryTest.php - Tests the method \Drupal\views\Plugin\views\query\Sql::getConnection().
- Tasks::checkBinaryOutput in core/
modules/ pgsql/ src/ Driver/ Database/ pgsql/ Install/ Tasks.php - Check Binary Output.
- Tasks::checkStandardConformingStrings in core/
modules/ pgsql/ src/ Driver/ Database/ pgsql/ Install/ Tasks.php - Ensures standard_conforming_strings setting is 'on'.
- 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.
- UpdatePathTestTrait::runUpdates in core/
tests/ Drupal/ Tests/ UpdatePathTestTrait.php - Helper function to run pending database updates.
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.