Permalink
Browse files

Delete always content from table master_slave_table between tests.

  • Loading branch information...
1 parent 804bd86 commit 1fa20f7a3d1f685c6b640167674723be09440b80 @kimhemsoe committed Sep 23, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 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)

0 comments on commit 1fa20f7

Please sign in to comment.