function EndOfTransactionQueriesTest::getDatabaseConnectionInfo
Same name in other branches
- 8.9.x core/tests/Drupal/KernelTests/Core/Cache/EndOfTransactionQueriesTest.php \Drupal\KernelTests\Core\Cache\EndOfTransactionQueriesTest::getDatabaseConnectionInfo()
Overrides KernelTestBase::getDatabaseConnectionInfo
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Cache/ EndOfTransactionQueriesTest.php, line 178
Class
- EndOfTransactionQueriesTest
- Tests that cache tag invalidation queries are delayed to the end of transactions.
Namespace
Drupal\KernelTests\Core\CacheCode
protected function getDatabaseConnectionInfo() {
$info = parent::getDatabaseConnectionInfo();
// Override default database driver to one that does logging. Third-party
// (non-core) database drivers can achieve the same test coverage by
// subclassing this test class and overriding only this method.
// @see \Drupal\database_statement_monitoring_test\LoggedStatementsTrait
// @see \Drupal\database_statement_monitoring_test\mysql\Connection
// @see \Drupal\database_statement_monitoring_test\pgsql\Connection
// @see \Drupal\database_statement_monitoring_test\sqlite\Connection
$info['default']['namespace'] = '\\Drupal\\database_statement_monitoring_test\\' . $info['default']['driver'];
return $info;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.