File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/Symfony/Component/Messenger/Bridge/Doctrine/Tests/Transport Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Component \Messenger \Bridge \Doctrine \Tests \Transport ;
1313
14- use Doctrine \DBAL \Cache \ArrayResult ;
1514use Doctrine \DBAL \Cache \ArrayStatement ;
15+ use Doctrine \DBAL \Driver \Result as DriverResult ;
1616use Doctrine \DBAL \Platforms \PostgreSQLPlatform ;
1717use Doctrine \DBAL \Query \QueryBuilder ;
1818use 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
You can’t perform that action at this time.
0 commit comments