Skip to content

Commit

Permalink
Remove calls to onConsecutiveCalls()
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-daubois committed Apr 30, 2024
1 parent 247e4b5 commit a07d535
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/Transport/BeanstalkdSenderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function testSend()
$connection->expects($this->once())->method('send')->with($encoded['body'], $encoded['headers'], 0);

$serializer = $this->createMock(SerializerInterface::class);
$serializer->method('encode')->with($envelope)->willReturnOnConsecutiveCalls($encoded);
$serializer->method('encode')->with($envelope)->willReturn($encoded);

$sender = new BeanstalkdSender($connection, $serializer);
$sender->send($envelope);
Expand All @@ -45,7 +45,7 @@ public function testSendWithDelay()
$connection->expects($this->once())->method('send')->with($encoded['body'], $encoded['headers'], 500);

$serializer = $this->createMock(SerializerInterface::class);
$serializer->method('encode')->with($envelope)->willReturnOnConsecutiveCalls($encoded);
$serializer->method('encode')->with($envelope)->willReturn($encoded);

$sender = new BeanstalkdSender($connection, $serializer);
$sender->send($envelope);
Expand Down

0 comments on commit a07d535

Please sign in to comment.