File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public function testSend()
3030 $ connection ->expects ($ this ->once ())->method ('send ' )->with ($ encoded ['body ' ], $ encoded ['headers ' ], 0 );
3131
3232 $ serializer = $ this ->createMock (SerializerInterface::class);
33- $ serializer ->method ('encode ' )->with ($ envelope )->willReturnOnConsecutiveCalls ($ encoded );
33+ $ serializer ->method ('encode ' )->with ($ envelope )->willReturn ($ encoded );
3434
3535 $ sender = new BeanstalkdSender ($ connection , $ serializer );
3636 $ sender ->send ($ envelope );
@@ -45,7 +45,7 @@ public function testSendWithDelay()
4545 $ connection ->expects ($ this ->once ())->method ('send ' )->with ($ encoded ['body ' ], $ encoded ['headers ' ], 500 );
4646
4747 $ serializer = $ this ->createMock (SerializerInterface::class);
48- $ serializer ->method ('encode ' )->with ($ envelope )->willReturnOnConsecutiveCalls ($ encoded );
48+ $ serializer ->method ('encode ' )->with ($ envelope )->willReturn ($ encoded );
4949
5050 $ sender = new BeanstalkdSender ($ connection , $ serializer );
5151 $ sender ->send ($ envelope );
You can’t perform that action at this time.
0 commit comments