Move notification event type onto events
This commit is contained in:
@@ -116,11 +116,11 @@ class TicketCreatedNotificationDispatchTest extends TestCase
|
||||
&& $job->event->payload()->fromStatusLabel === null
|
||||
&& $job->event->payload()->toStatusId === $backlogStatus->id
|
||||
&& $job->event->payload()->toStatusLabel === 'Backlog'
|
||||
&& $job->event->payload()->eventType() === NotificationEventType::TicketCreate
|
||||
&& $job->event->eventType() === NotificationEventType::TicketCreate
|
||||
&& $job->notificationDeliveryLogId !== null;
|
||||
});
|
||||
Queue::assertPushed(DeliverNotificationAction::class, fn (DeliverNotificationAction $job): bool => $job->notificationActionId === $discordAction->id
|
||||
&& $job->event->payload()->eventType() === NotificationEventType::TicketCreate
|
||||
&& $job->event->eventType() === NotificationEventType::TicketCreate
|
||||
&& $job->notificationDeliveryLogId !== null);
|
||||
Queue::assertNotPushed(DeliverNotificationAction::class, fn (DeliverNotificationAction $job): bool => $job->notificationActionId === $disabledAction->id);
|
||||
Queue::assertNotPushed(DeliverNotificationAction::class, fn (DeliverNotificationAction $job): bool => $job->notificationActionId === $statusChangedAction->id);
|
||||
|
||||
Reference in New Issue
Block a user