Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #203 from kimhemsoe/master_slave_tests_deletestate

Delete always content from table master_slave_table between tests.
  • Loading branch information...
commit 43bfbf9784c82d3242890c0d816e977833c42470 2 parents c7516d4 + 1fa20f7
@beberlei beberlei authored
View
5 tests/Doctrine/Tests/DBAL/Functional/MasterSlaveConnectionTest.php
@@ -27,9 +27,12 @@ public function setUp()
$sm = $this->_conn->getSchemaManager();
$sm->createTable($table);
- $this->_conn->insert('master_slave_table', array('test_int' => 1));
+
} catch(\Exception $e) {
}
+
+ $this->_conn->executeUpdate('DELETE FROM master_slave_table');
+ $this->_conn->insert('master_slave_table', array('test_int' => 1));
}
public function createMasterSlaveConnection($keepSlave = false)
Please sign in to comment.
Something went wrong with that request. Please try again.