Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3f043ad

Browse files
committed
snsqs fix tests
1 parent b0e3da4 commit 3f043ad

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pkg/sqs/Tests/SqsContextTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,12 +328,17 @@ public function testShouldAllowGetQueueArn()
328328
'QueueUrl' => 'theQueueUrl',
329329
'AttributeNames' => ['QueueArn'],
330330
]))
331-
->willReturn(new Result(['QueueArn' => 'theQueueArn']))
331+
->willReturn(new Result([
332+
'Attributes' => [
333+
'QueueArn' => 'theQueueArn',
334+
],
335+
]))
332336
;
333337

334338
$context = new SqsContext($sqsClient, []);
335339

336340
$queue = $context->createQueue('aQueueName');
341+
$queue->setRegion('theRegion');
337342

338343
$this->assertSame('theQueueArn', $context->getQueueArn($queue));
339344
}

0 commit comments

Comments
 (0)