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 ;
15
14
use Doctrine \DBAL \Cache \ArrayStatement ;
15
+ use Doctrine \DBAL \Driver \Result as DriverResult ;
16
16
use Doctrine \DBAL \Platforms \PostgreSQLPlatform ;
17
17
use Doctrine \DBAL \Query \QueryBuilder ;
18
18
use Doctrine \DBAL \Result ;
@@ -95,10 +95,13 @@ public function countNotifyCalls()
95
95
->method ('getNativeConnection ' )
96
96
->willReturn ($ wrappedConnection );
97
97
98
+ $ driverResult = $ this ->createMock (DriverResult::class);
99
+ $ driverResult ->method ('fetchAssociative ' )
100
+ ->willReturn (false );
98
101
$ driverConnection
99
102
->expects (self ::any ())
100
103
->method ('executeQuery ' )
101
- ->willReturn (new Result (new ArrayResult ([]) , $ driverConnection ));
104
+ ->willReturn (new Result ($ driverResult , $ driverConnection ));
102
105
}
103
106
$ connection = new PostgreSqlConnection (['table_name ' => 'queue_table ' ], $ driverConnection );
104
107
You can’t perform that action at this time.
0 commit comments