Commit 43bfbf97 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge pull request #203 from kimhemsoe/master_slave_tests_deletestate

Delete always content from table master_slave_table between tests.
parents c7516d42 1fa20f7a
...@@ -27,9 +27,12 @@ class MasterSlaveConnectionTest extends DbalFunctionalTestCase ...@@ -27,9 +27,12 @@ class MasterSlaveConnectionTest extends DbalFunctionalTestCase
$sm = $this->_conn->getSchemaManager(); $sm = $this->_conn->getSchemaManager();
$sm->createTable($table); $sm->createTable($table);
$this->_conn->insert('master_slave_table', array('test_int' => 1));
} catch(\Exception $e) { } 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) public function createMasterSlaveConnection($keepSlave = false)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment