diff --git a/src/Event/Sqs/SqsRecord.php b/src/Event/Sqs/SqsRecord.php index 13f9e2f03..300b27ebc 100644 --- a/src/Event/Sqs/SqsRecord.php +++ b/src/Event/Sqs/SqsRecord.php @@ -59,10 +59,7 @@ public function getReceiptHandle(): string /** * Returns the name of the SQS queue that contains the message. - * - * Queue naming constraints: - * - * https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-queues.html + * Queue naming constraints: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-queues.html */ public function getQueueName(): string { diff --git a/tests/Event/Sqs/SqsRecordTest.php b/tests/Event/Sqs/SqsRecordTest.php index d1277be0d..b83f190ff 100644 --- a/tests/Event/Sqs/SqsRecordTest.php +++ b/tests/Event/Sqs/SqsRecordTest.php @@ -7,9 +7,10 @@ class SqsRecordTest extends TestCase { - public function test_it_can_get_queue_name_from_sqs_event() { + public function test_it_can_get_queue_name_from_sqs_event() + { $event = json_decode(file_get_contents(__DIR__ . '/sqs.json'), true); - + $sqsRecord = new SqsRecord($event['Records'][0]); $this->assertSame($sqsRecord->getQueueName(), 'my-queue');