Fix queue job assertions for notification event payload
This commit is contained in:
@@ -233,8 +233,8 @@ class TicketApiTest extends TestCase
|
|||||||
|
|
||||||
Queue::assertPushed(DeliverNotificationAction::class, function (DeliverNotificationAction $job) use ($notificationAction): bool {
|
Queue::assertPushed(DeliverNotificationAction::class, function (DeliverNotificationAction $job) use ($notificationAction): bool {
|
||||||
return $job->notificationActionId === $notificationAction->id
|
return $job->notificationActionId === $notificationAction->id
|
||||||
&& $job->payload->ticketKey === 'CORE-1'
|
&& $job->event->payload()->ticketKey === 'CORE-1'
|
||||||
&& $job->payload->toStatusLabel === 'Doing'
|
&& $job->event->payload()->toStatusLabel === 'Doing'
|
||||||
&& $job->notificationDeliveryLogId !== null;
|
&& $job->notificationDeliveryLogId !== null;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -359,8 +359,8 @@ class KanbanGitMcpTest extends TestCase
|
|||||||
|
|
||||||
Queue::assertPushed(DeliverNotificationAction::class, function (DeliverNotificationAction $job) use ($notificationAction): bool {
|
Queue::assertPushed(DeliverNotificationAction::class, function (DeliverNotificationAction $job) use ($notificationAction): bool {
|
||||||
return $job->notificationActionId === $notificationAction->id
|
return $job->notificationActionId === $notificationAction->id
|
||||||
&& $job->payload->ticketKey === 'CORE-1'
|
&& $job->event->payload()->ticketKey === 'CORE-1'
|
||||||
&& $job->payload->toStatusLabel === 'Doing'
|
&& $job->event->payload()->toStatusLabel === 'Doing'
|
||||||
&& $job->notificationDeliveryLogId !== null;
|
&& $job->notificationDeliveryLogId !== null;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user