File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
src/Symfony/Component/Messenger/Bridge/Doctrine/Tests/Transport Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -328,6 +328,15 @@ public function testKeepalive()
328328 ->method ('createQueryBuilder ' )
329329 ->willReturn ($ queryBuilder );
330330
331+ $ queryBuilder ->expects ($ this ->once ())
332+ ->method ('getSQL ' )
333+ ->willReturn ('UPDATE ' );
334+
335+ $ driverConnection ->expects ($ this ->once ())
336+ ->method ('executeStatement ' )
337+ ->with ('UPDATE ' )
338+ ->willReturn (1 );
339+
331340 $ driverConnection ->expects ($ this ->once ())
332341 ->method ('commit ' );
333342
@@ -363,6 +372,10 @@ public function testKeepaliveRollback()
363372 ->method ('createQueryBuilder ' )
364373 ->willReturn ($ queryBuilder );
365374
375+ $ queryBuilder ->expects ($ this ->once ())
376+ ->method ('getSQL ' )
377+ ->willReturn ('UPDATE ' );
378+
366379 $ driverConnection ->expects ($ this ->once ())
367380 ->method ('executeStatement ' )
368381 ->willThrowException ($ this ->createMock (DBALException::class));
You can’t perform that action at this time.
0 commit comments