Commit d6462810 authored by ananda-agrawal's avatar ananda-agrawal Committed by Benjamin Eberlei

Update MasterSlaveConnectionTest.php

the test testKeepSlaveBeginTransactionStaysOnMaster does not begin a transaction, I have put a begin transaction, and now it fails,

the fix is here, if it makes sense
https://github.com/ananda-agrawal/dbal/commit/eb9262afb3955e4974d5a713b495a544b66a5cf7
parent 3da7d2ff
...@@ -95,7 +95,9 @@ class MasterSlaveConnectionTest extends DbalFunctionalTestCase ...@@ -95,7 +95,9 @@ class MasterSlaveConnectionTest extends DbalFunctionalTestCase
$conn = $this->createMasterSlaveConnection($keepSlave = true); $conn = $this->createMasterSlaveConnection($keepSlave = true);
$conn->connect('slave'); $conn->connect('slave');
$conn->beginTransaction();
$conn->insert('master_slave_table', array('test_int' => 30)); $conn->insert('master_slave_table', array('test_int' => 30));
$conn->commit();
$this->assertTrue($conn->isConnectedToMaster()); $this->assertTrue($conn->isConnectedToMaster());
......
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