Skip to content

Commit b7d8f16

Browse files
committed
minor symfony#59622 [Messenger] fix tests with Doctrine DBAL < 4 (xabbuh)
This PR was merged into the 7.3 branch. Discussion ---------- [Messenger] fix tests with Doctrine DBAL < 4 | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT Commits ------- f44f546 fix tests with Doctrine DBAL < 4
2 parents d4566b2 + f44f546 commit b7d8f16

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Symfony/Component/Messenger/Bridge/Doctrine/Tests/Transport/ConnectionTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,15 @@ public function testKeepalive()
328328
->method('createQueryBuilder')
329329
->willReturn($queryBuilder);
330330

331+
$queryBuilder->expects($this->once())
332+
->method('getSQL')
333+
->willReturn('UPDATE');
334+
335+
$driverConnection->expects($this->once())
336+
->method('executeStatement')
337+
->with('UPDATE')
338+
->willReturn(1);
339+
331340
$driverConnection->expects($this->once())
332341
->method('commit');
333342

@@ -363,6 +372,10 @@ public function testKeepaliveRollback()
363372
->method('createQueryBuilder')
364373
->willReturn($queryBuilder);
365374

375+
$queryBuilder->expects($this->once())
376+
->method('getSQL')
377+
->willReturn('UPDATE');
378+
366379
$driverConnection->expects($this->once())
367380
->method('executeStatement')
368381
->willThrowException($this->createMock(DBALException::class));

0 commit comments

Comments
 (0)