@@ -293,6 +293,7 @@ public function testShouldReceiveMessage()
293293 $ expectedSqsMessage = [
294294 'Body ' => 'The Body ' ,
295295 'ReceiptHandle ' => 'The Receipt ' ,
296+ 'MessageId ' => 'theMessageId ' ,
296297 'Attributes ' => [
297298 'SenderId ' => 'AROAX5IAWYILCTYIS3OZ5:foo@bar.com ' ,
298299 'ApproximateFirstReceiveTimestamp ' => '1560512269481 ' ,
@@ -337,7 +338,7 @@ public function testShouldReceiveMessage()
337338
338339 $ this ->assertInstanceOf (SqsMessage::class, $ result );
339340 $ this ->assertEquals ('The Body ' , $ result ->getBody ());
340- $ this ->assertEquals (['hkey ' => 'hvalue ' ], $ result ->getHeaders ());
341+ $ this ->assertEquals (['hkey ' => 'hvalue ' , ' message_id ' => ' theMessageId ' ], $ result ->getHeaders ());
341342 $ this ->assertEquals (['key ' => 'value ' ], $ result ->getProperties ());
342343 $ this ->assertEquals ([
343344 'SenderId ' => 'AROAX5IAWYILCTYIS3OZ5:foo@bar.com ' ,
@@ -347,6 +348,7 @@ public function testShouldReceiveMessage()
347348 ], $ result ->getAttributes ());
348349 $ this ->assertTrue ($ result ->isRedelivered ());
349350 $ this ->assertEquals ('The Receipt ' , $ result ->getReceiptHandle ());
351+ $ this ->assertEquals ('theMessageId ' , $ result ->getMessageId ());
350352 }
351353
352354 public function testShouldReceiveMessageWithCustomRegion ()
@@ -368,6 +370,7 @@ public function testShouldReceiveMessageWithCustomRegion()
368370 ->willReturn (new Result (['Messages ' => [[
369371 'Body ' => 'The Body ' ,
370372 'ReceiptHandle ' => 'The Receipt ' ,
373+ 'MessageId ' => 'theMessageId ' ,
371374 'Attributes ' => [
372375 'ApproximateReceiveCount ' => 3 ,
373376 ],
0 commit comments