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 ;
@@ -95,10 +95,13 @@ public function countNotifyCalls()
9595 ->method ('getNativeConnection ' )
9696 ->willReturn ($ wrappedConnection );
9797
98+ $ driverResult = $ this ->createMock (DriverResult::class);
99+ $ driverResult ->method ('fetchAssociative ' )
100+ ->willReturn (false );
98101 $ driverConnection
99102 ->expects (self ::any ())
100103 ->method ('executeQuery ' )
101- ->willReturn (new Result (new ArrayResult ([]) , $ driverConnection ));
104+ ->willReturn (new Result ($ driverResult , $ driverConnection ));
102105 }
103106 $ connection = new PostgreSqlConnection (['table_name ' => 'queue_table ' ], $ driverConnection );
104107
You can’t perform that action at this time.
0 commit comments