Skip to content

Commit 350acfe

Browse files
committed
Merge branch '5.4' into 6.4
* 5.4: fix test to be compatible with DBAL 4.2
2 parents 0bd6136 + c5820f7 commit 350acfe

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace Symfony\Component\Messenger\Bridge\Doctrine\Tests\Transport;
1313

14-
use Doctrine\DBAL\Cache\ArrayResult;
1514
use Doctrine\DBAL\Cache\ArrayStatement;
15+
use Doctrine\DBAL\Driver\Result as DriverResult;
1616
use Doctrine\DBAL\Platforms\PostgreSQLPlatform;
1717
use Doctrine\DBAL\Query\QueryBuilder;
1818
use Doctrine\DBAL\Result;
@@ -98,10 +98,13 @@ public function countNotifyCalls()
9898
->method('getNativeConnection')
9999
->willReturn($wrappedConnection);
100100

101+
$driverResult = $this->createMock(DriverResult::class);
102+
$driverResult->method('fetchAssociative')
103+
->willReturn(false);
101104
$driverConnection
102105
->expects(self::any())
103106
->method('executeQuery')
104-
->willReturn(new Result(new ArrayResult([]), $driverConnection));
107+
->willReturn(new Result($driverResult, $driverConnection));
105108
}
106109
$connection = new PostgreSqlConnection(['table_name' => 'queue_table'], $driverConnection);
107110

0 commit comments

Comments
 (0)