Skip to content

Commit 765c26b

Browse files
committed
Fix test
1 parent a390715 commit 765c26b

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
@@ -150,8 +150,9 @@ public function testTransactionLevelNotIncrementedOnTransactionException()
150150
public function testBeginTransactionMethodRetriesOnFailure()
151151
{
152152
$pdo = $this->createMock(DatabaseConnectionTestMockPDO::class);
153-
$pdo->expects($this->exactly(2))->method('beginTransaction');
154-
$pdo->expects($this->at(0))->method('beginTransaction')->will($this->throwException(new ErrorException('server has gone away')));
153+
$pdo->expects($this->at(0))
154+
->method('beginTransaction')
155+
->will($this->throwException(new ErrorException('server has gone away')));
155156
$connection = $this->getMockConnection(['reconnect'], $pdo);
156157
$connection->expects($this->once())->method('reconnect');
157158
$connection->beginTransaction();

0 commit comments

Comments
 (0)