1
0
mirror of synced 2025-02-02 13:31:45 +03:00

Correcting connection existence in tearDown operations

This commit is contained in:
Marco Pivetta 2017-08-11 23:28:20 +02:00
parent efa058bd8f
commit 22546a3811
No known key found for this signature in database
GPG Key ID: 4167D3337FD9D629

View File

@ -308,12 +308,13 @@ abstract class OrmFunctionalTestCase extends OrmTestCase
*/
protected function tearDown()
{
$conn = static::$_sharedConn;
// In case test is skipped, tearDown is called, but no setup may have run
if ( ! $conn) {
return;
}
$conn = static::$_sharedConn;
$platform = $conn->getDatabasePlatform();
$this->_sqlLoggerStack->enabled = false;