From 4832e7f9841a86e04a764725db0eea2a09031725 Mon Sep 17 00:00:00 2001 From: Koda Date: Sat, 25 Apr 2026 22:10:27 +0000 Subject: [PATCH] Fix queue job assertions for notification event payload --- tests/Feature/Api/TicketApiTest.php | 4 ++-- tests/Feature/Mcp/KanbanGitMcpTest.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Feature/Api/TicketApiTest.php b/tests/Feature/Api/TicketApiTest.php index 5015a28..937efab 100644 --- a/tests/Feature/Api/TicketApiTest.php +++ b/tests/Feature/Api/TicketApiTest.php @@ -233,8 +233,8 @@ class TicketApiTest extends TestCase Queue::assertPushed(DeliverNotificationAction::class, function (DeliverNotificationAction $job) use ($notificationAction): bool { return $job->notificationActionId === $notificationAction->id - && $job->payload->ticketKey === 'CORE-1' - && $job->payload->toStatusLabel === 'Doing' + && $job->event->payload()->ticketKey === 'CORE-1' + && $job->event->payload()->toStatusLabel === 'Doing' && $job->notificationDeliveryLogId !== null; }); diff --git a/tests/Feature/Mcp/KanbanGitMcpTest.php b/tests/Feature/Mcp/KanbanGitMcpTest.php index 1a44e9b..f5dde21 100644 --- a/tests/Feature/Mcp/KanbanGitMcpTest.php +++ b/tests/Feature/Mcp/KanbanGitMcpTest.php @@ -359,8 +359,8 @@ class KanbanGitMcpTest extends TestCase Queue::assertPushed(DeliverNotificationAction::class, function (DeliverNotificationAction $job) use ($notificationAction): bool { return $job->notificationActionId === $notificationAction->id - && $job->payload->ticketKey === 'CORE-1' - && $job->payload->toStatusLabel === 'Doing' + && $job->event->payload()->ticketKey === 'CORE-1' + && $job->event->payload()->toStatusLabel === 'Doing' && $job->notificationDeliveryLogId !== null; });