Beispiel #1
1
 public function testReturnMessage()
 {
     $expectedArg = ["QueueUrl" => $this->queueUrl, "ReceiptHandle" => $this->receiptId, "VisibilityTimeout" => 0];
     $this->sqsClient->shouldReceive("changeMessageVisibility")->with($expectedArg)->once();
     $queue = new Queue($this->sqsClient, $this->messageFactory);
     $queue->returnMessage($this->queueMessage);
 }