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 fb96073 commit 31c1deb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/Transport/AmazonSqsSenderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testSend()
$connection->expects($this->once())->method('send')->with($encoded['body'], $encoded['headers']);

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

$sender = new AmazonSqsSender($connection, $serializer);
$sender->send($envelope);
Expand All @@ -49,7 +49,7 @@ public function testSendWithAmazonSqsFifoStamp()
->with($encoded['body'], $encoded['headers'], 0, $stamp->getMessageGroupId(), $stamp->getMessageDeduplicationId());

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

$sender = new AmazonSqsSender($connection, $serializer);
$sender->send($envelope);
Expand All @@ -67,7 +67,7 @@ public function testSendWithAmazonSqsXrayTraceHeaderStamp()
->with($encoded['body'], $encoded['headers'], 0, null, null, $stamp->getTraceId());

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

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

0 comments on commit 31c1deb

Please sign in to comment.