Skip to content

Commit 4331630

Browse files
Update tests to pass in a collection of notifiables to SendQueuedNotifications to fix tests for 5.5 - 6.x.
1 parent 4b20f80 commit 4331630

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/QueueTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Aws\Sqs\SqsClient;
88
use BadMethodCallException;
99
use InvalidArgumentException;
10+
use Illuminate\Support\Collection;
1011
use Illuminate\Mail\SendQueuedMailable;
1112
use Illuminate\Queue\CallQueuedHandler;
1213
use ShiftOneLabs\LaravelSqsFifoQueue\SqsFifoQueue;
@@ -72,7 +73,7 @@ public function test_queue_sends_message_group_id_from_notification()
7273
$group = 'job-group';
7374
$notification = new Notification();
7475
$notification->onMessageGroup($group);
75-
$job = new SendQueuedNotifications('notifiables', $notification);
76+
$job = new SendQueuedNotifications(new Collection(['notifiables']), $notification);
7677
$closure = function ($message) use ($group) {
7778
if ($message['MessageGroupId'] != $group) {
7879
return false;
@@ -233,7 +234,7 @@ public function test_queue_uses_deduplicator_from_notification()
233234
$deduplication = 'content';
234235
$notification = new Notification();
235236
$notification->withDeduplicator($deduplication);
236-
$job = new SendQueuedNotifications('notifiables', $notification);
237+
$job = new SendQueuedNotifications(new Collection(['notifiables']), $notification);
237238
$closure = function ($message) use ($deduplication) {
238239
$deduplicator = $this->app->make('queue.sqs-fifo.deduplicator.'.$deduplication);
239240
$deduplicationId = $deduplicator->generate($message['MessageBody'], null);

0 commit comments

Comments
 (0)