Unverified Commit 1510b7c1 authored by Sergei Morozov's avatar Sergei Morozov Committed by GitHub

Merge pull request #4006 from morozov/functional-connect-failure

Fix logging in functional tests in case of connection failure
parents 9e9e32e0 7e1c0dbb
......@@ -46,13 +46,14 @@ abstract class FunctionalTestCase extends TestCase
protected function setUp() : void
{
$this->sqlLoggerStack = new DebugStack();
if (! isset(self::$sharedConnection)) {
self::$sharedConnection = TestUtil::getConnection();
}
$this->connection = self::$sharedConnection;
$this->sqlLoggerStack = new DebugStack();
$this->connection->getConfiguration()->setSQLLogger($this->sqlLoggerStack);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment