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 11
11
12
12
namespace Symfony \Component \Messenger \Bridge \Doctrine \Tests \Transport ;
13
13
14
- use Doctrine \DBAL \Cache \ ArrayResult ;
14
+ use Doctrine \DBAL \Driver \ Result as DriverResult ;
15
15
use Doctrine \DBAL \Platforms \PostgreSQLPlatform ;
16
16
use Doctrine \DBAL \Query \QueryBuilder ;
17
17
use Doctrine \DBAL \Result ;
@@ -84,10 +84,13 @@ public function countNotifyCalls()
84
84
->method ('getNativeConnection ' )
85
85
->willReturn ($ wrappedConnection );
86
86
87
+ $ driverResult = $ this ->createMock (DriverResult::class);
88
+ $ driverResult ->method ('fetchAssociative ' )
89
+ ->willReturn (false );
87
90
$ driverConnection
88
91
->expects (self ::any ())
89
92
->method ('executeQuery ' )
90
- ->willReturn (new Result (new ArrayResult ([]) , $ driverConnection ));
93
+ ->willReturn (new Result ($ driverResult , $ driverConnection ));
91
94
92
95
$ connection = new PostgreSqlConnection (['table_name ' => 'queue_table ' ], $ driverConnection );
93
96
You can’t perform that action at this time.
0 commit comments