feat: implement soft deletes, mailbox reclaims, cooldowns, and auto-cleanup

This commit is contained in:
idevakk
2026-03-06 02:39:47 +05:30
parent e79c3f79a2
commit e6fd4e6f4c
8 changed files with 176 additions and 11 deletions

View File

@@ -80,9 +80,6 @@ test('deleting mailbox performs soft delete and clears session', function () {
Livewire::test(Mailbox::class)
->call('deleteMailbox', $mailbox->id);
// Note: My current implementation of deleteMailbox doesn't use SoftDeletes on the model yet
// because I didn't add the trait to the Mailbox model in my implementation.
// Let me check if I should add SoftDeletes to Mailbox model.
$this->assertDatabaseMissing('mailboxes', ['id' => $mailbox->id]);
$this->assertSoftDeleted('mailboxes', ['id' => $mailbox->id]);
expect(session('current_mailbox_id'))->toBeNull();
});