Skip to content

Commit b4a7e2e

Browse files
committed
Merge branch '6.x' into 7.x
2 parents c3b06bc + 765c26b commit b4a7e2e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/Database/DatabaseConnectionTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,9 @@ public function testTransactionLevelNotIncrementedOnTransactionException()
151151
public function testBeginTransactionMethodRetriesOnFailure()
152152
{
153153
$pdo = $this->createMock(DatabaseConnectionTestMockPDO::class);
154-
$pdo->expects($this->exactly(2))->method('beginTransaction');
155-
$pdo->expects($this->at(0))->method('beginTransaction')->will($this->throwException(new ErrorException('server has gone away')));
154+
$pdo->expects($this->at(0))
155+
->method('beginTransaction')
156+
->will($this->throwException(new ErrorException('server has gone away')));
156157
$connection = $this->getMockConnection(['reconnect'], $pdo);
157158
$connection->expects($this->once())->method('reconnect');
158159
$connection->beginTransaction();

0 commit comments

Comments
 (0)