Skip to content

Commit 128d926

Browse files
author
Adrian Shum
committed
attempt fix test
1 parent 6c1cf35 commit 128d926

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

pkg/sqs/Tests/SqsConsumerTest.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -205,20 +205,13 @@ public function testShouldRejectMessageAndRequeue()
205205
->expects($this->once())
206206
->method('changeMessageVisibility')
207207
->with($this->identicalTo([
208-
'@region' => null,
208+
'@region' => 'theRegion',
209209
'QueueUrl' => 'theQueueUrl',
210210
'ReceiptHandle' => 'theReceipt',
211211
'VisibilityTimeout' => 0,
212212
]))
213213
;
214214

215-
$producer = $this->createProducerMock();
216-
$producer
217-
->expects($this->once())
218-
->method('send')
219-
->with($this->identicalTo($destination), $this->identicalTo($message))
220-
;
221-
222215
$context = $this->createContextMock();
223216
$context
224217
->expects($this->once())
@@ -239,6 +232,7 @@ public function testShouldRejectMessageAndRequeue()
239232
$message->setReceiptHandle('theReceipt');
240233

241234
$destination = new SqsDestination('queue');
235+
$destination->setRegion('theRegion');
242236

243237
$consumer = new SqsConsumer($context, $destination);
244238
$consumer->reject($message, true);

0 commit comments

Comments
 (0)