16 calls to Database::closeConnection() in Drupal 9
- 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.
- ConnectionUnitTest::testOpenClose in core/
tests/ Drupal/ KernelTests/ Core/ Database/ ConnectionUnitTest.php - Tests Database::closeConnection() without query.
- ConnectionUnitTest::testOpenQueryClose in core/
tests/ Drupal/ KernelTests/ Core/ Database/ ConnectionUnitTest.php - Tests Database::closeConnection() with a query.
- ConnectionUnitTest::testOpenQueryPrefetchClose in core/
tests/ Drupal/ KernelTests/ Core/ Database/ ConnectionUnitTest.php - Tests Database::closeConnection() with a query and custom prefetch method.
- ConnectionUnitTest::testOpenSelectQueryClose in core/
tests/ Drupal/ KernelTests/ Core/ Database/ ConnectionUnitTest.php - Tests Database::closeConnection() with a select query.
- Database::removeConnection in core/
lib/ Drupal/ Core/ Database/ Database.php - Remove a connection and its corresponding connection information.
- LargeQueryTest::testMaxAllowedPacketQueryTruncating in core/
tests/ Drupal/ KernelTests/ Core/ Database/ LargeQueryTest.php - Tests truncation of messages when max_allowed_packet exception occurs.
- NextIdTest::testDbNextIdClosedConnection in core/
tests/ Drupal/ KernelTests/ Core/ Database/ 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/
lib/ Drupal/ Core/ Database/ Driver/ pgsql/ Install/ Tasks.php - Check Binary Output.
- Tasks::checkStandardConformingStrings in core/
lib/ Drupal/ Core/ Database/ Driver/ pgsql/ Install/ Tasks.php - Ensures standard_conforming_strings setting is 'on'.
- 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.
- UpdatePathTestTrait::runUpdates in core/
tests/ Drupal/ Tests/ UpdatePathTestTrait.php - Helper function to run pending database updates.