diff --git a/tests/TestCase/Database/ConnectionTest.php b/tests/TestCase/Database/ConnectionTest.php
index <HASH>..<HASH> 100644
--- a/tests/TestCase/Database/ConnectionTest.php
+++ b/tests/TestCase/Database/ConnectionTest.php
@@ -723,6 +723,7 @@ class ConnectionTest extends TestCase {
 			->setMethods(['connect'])
 			->disableOriginalConstructor()
 			->getMock();
+		$connection->logQueries(true);
 
 		$driver = $this->getMockFormDriver();
 		$connection->driver($driver);
explicitly log queries

with the constructor disabled to avoid the driver error - need to enable
log queries by hand