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()
328
328
->method ('createQueryBuilder ' )
329
329
->willReturn ($ queryBuilder );
330
330
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
+
331
340
$ driverConnection ->expects ($ this ->once ())
332
341
->method ('commit ' );
333
342
@@ -363,6 +372,10 @@ public function testKeepaliveRollback()
363
372
->method ('createQueryBuilder ' )
364
373
->willReturn ($ queryBuilder );
365
374
375
+ $ queryBuilder ->expects ($ this ->once ())
376
+ ->method ('getSQL ' )
377
+ ->willReturn ('UPDATE ' );
378
+
366
379
$ driverConnection ->expects ($ this ->once ())
367
380
->method ('executeStatement ' )
368
381
->willThrowException ($ this ->createMock (DBALException::class));
You can’t perform that action at this time.
0 commit comments