feat(G3): убрать ветку reminder из NotificationService

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Дмитрий
2026-06-19 11:36:27 +03:00
parent 591abc7d93
commit c85b4acbc3
2 changed files with 2 additions and 47 deletions
@@ -26,11 +26,11 @@ test('NotificationService::notifyInApp: вызов напрямую создаё
$user = User::factory()->create(['tenant_id' => $tenant->id]);
$service = app(NotificationService::class);
$service->notifyInApp($user, 'reminder', 'Срок касания', 'Перезвонить клиенту через 30 мин', ['deal_id' => 42]);
$service->notifyInApp($user, 'new_lead', 'Срок касания', 'Перезвонить клиенту через 30 мин', ['deal_id' => 42]);
$notif = InAppNotification::query()->first();
expect($notif)->not->toBeNull();
expect($notif->event)->toBe('reminder');
expect($notif->event)->toBe('new_lead');
expect($notif->title)->toBe('Срок касания');
expect($notif->body)->toBe('Перезвонить клиенту через 30 мин');
expect($notif->deal_id)->toBe(42);