10000 Merge branch '6.4' into 7.1 · symfony/symfony@1ffa1c7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1ffa1c7

Browse files
committed
Merge branch '6.4' into 7.1
* 6.4: fix test to be compatible with DBAL 4.2
2 parents c27d233 + 350acfe commit 1ffa1c7

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,7 +11,7 @@
1111

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

14-
use Doctrine\DBAL\Cache\ArrayResult;
14+
use Doctrine\DBAL\Driver\Result as DriverResult;
1515
use Doctrine\DBAL\Platforms\PostgreSQLPlatform;
1616
use Doctrine\DBAL\Query\QueryBuilder;
1717
use Doctrine\DBAL\Result;
@@ -84,10 +84,13 @@ public function countNotifyCalls()
8484
->method('getNativeConnection')
8585
->willReturn($wrappedConnection);
8686

87+
$driverResult = $this->createMock(DriverResult::class);
88+
$driverResult->method('fetchAssociative')
89+
->willReturn(false);
8790
$driverConnection
8891
->expects(self::any())
8992
->method('executeQuery')
90-
->willReturn(new Result(new ArrayResult([]), $driverConnection));
93+
->willReturn(new Result($driverResult, $driverConnection));
9194

9295
$connection = new PostgreSqlConnection(['table_name' => 'queue_table'], $driverConnection);
9396

0 commit comments

Comments
 (0)
0