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 ;
@@ -98,10 +98,13 @@ public function countNotifyCalls()
98
98
->method ('getNativeConnection ' )
99
99
->willReturn ($ wrappedConnection );
100
100
101
+ $ driverResult = $ this ->createMock (DriverResult::class);
102
+ $ driverResult ->method ('fetchAssociative ' )
103
+ ->willReturn (false );
101
104
$ driverConnection
102
105
->expects (self ::any ())
103
106
->method ('executeQuery ' )
104
- ->willReturn (new Result (new ArrayResult ([]) , $ driverConnection ));
107
+ ->willReturn (new Result ($ driverResult , $ driverConnection ));
105
108
}
106
109
$ connection = new PostgreSqlConnection (['table_name ' => 'queue_table ' ], $ driverConnection );
107
110
You can’t perform that action at this time.
0 commit comments