Skip to content

Commit

Permalink
Merge pull request #3820 from zdrsoft/master
Browse files Browse the repository at this point in the history
Fix for #3819
  • Loading branch information
cebe committed Mar 25, 2015
2 parents 4a7127b + 16410a6 commit 1c00247
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions tests/framework/validators/CExistValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ protected function setUp()

protected function tearDown()
{
$this->_connection->createCommand()->dropTable($this->_tableName);
$this->_connection->active=false;
if($this->_connection instanceof CDbConnection)
{
$this->_connection->createCommand()->dropTable($this->_tableName);
$this->_connection->active=false;
}
}

/**
Expand Down
7 changes: 5 additions & 2 deletions tests/framework/validators/CUniqueValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ protected function setUp()

protected function tearDown()
{
$this->_connection->createCommand()->dropTable($this->_tableName);
$this->_connection->active=false;
if($this->_connection instanceof CDbConnection)
{
$this->_connection->createCommand()->dropTable($this->_tableName);
$this->_connection->active=false;
}
}

/**
Expand Down

0 comments on commit 1c00247

Please sign in to comment.