feat(G3): убрать ветку reminder из NotificationService
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user