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()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
|
$conn = static::$_sharedConn;
|
||||||
|
|
||||||
// In case test is skipped, tearDown is called, but no setup may have run
|
// In case test is skipped, tearDown is called, but no setup may have run
|
||||||
if ( ! $conn) {
|
if ( ! $conn) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$conn = static::$_sharedConn;
|
|
||||||
$platform = $conn->getDatabasePlatform();
|
$platform = $conn->getDatabasePlatform();
|
||||||
|
|
||||||
$this->_sqlLoggerStack->enabled = false;
|
$this->_sqlLoggerStack->enabled = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user