Correcting connection existence in tearDown operations
This commit is contained in:
parent
efa058bd8f
commit
22546a3811
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user