File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -205,20 +205,13 @@ public function testShouldRejectMessageAndRequeue()
205
205
->expects ($ this ->once ())
206
206
->method ('changeMessageVisibility ' )
207
207
->with ($ this ->identicalTo ([
208
- '@region ' => null ,
208
+ '@region ' => ' theRegion ' ,
209
209
'QueueUrl ' => 'theQueueUrl ' ,
210
210
'ReceiptHandle ' => 'theReceipt ' ,
211
211
'VisibilityTimeout ' => 0 ,
212
212
]))
213
213
;
214
214
215
- $ producer = $ this ->createProducerMock ();
216
- $ producer
217
- ->expects ($ this ->once ())
218
- ->method ('send ' )
219
- ->with ($ this ->identicalTo ($ destination ), $ this ->identicalTo ($ message ))
220
- ;
221
-
222
215
$ context = $ this ->createContextMock ();
223
216
$ context
224
217
->expects ($ this ->once ())
@@ -239,6 +232,7 @@ public function testShouldRejectMessageAndRequeue()
239
232
$ message ->setReceiptHandle ('theReceipt ' );
240
233
241
234
$ destination = new SqsDestination ('queue ' );
235
+ $ destination ->setRegion ('theRegion ' );
242
236
243
237
$ consumer = new SqsConsumer ($ context , $ destination );
244
238
$ consumer ->reject ($ message , true );
You can’t perform that action at this time.
0 commit comments