feat(trash): implementasi fitur Tong Sampah (Recycle Bin) soft deletes dan retensi otomatis 30/60/90 hari di Super Admin

This commit is contained in:
Ray1111-aa
2026-10-28 09:47:16 +07:00
parent cb9891b1e3
commit 926683fd34
42 changed files with 1603 additions and 26 deletions
+1 -1
View File
@@ -380,7 +380,7 @@ class P2hInspectionTest extends TestCase
// 6. Hapus kategori aset juga menghapus master template yang belum ada transaksi
$deleteResponse = $this->actingAs($this->qmaAdmin)->delete('/qma/vehicles/' . $category->id);
$deleteResponse->assertSessionHas('success');
$this->assertDatabaseMissing('p2h_templates', ['id' => $template->id]);
$this->assertSoftDeleted('p2h_templates', ['id' => $template->id]);
}
public function test_qma_admin_can_edit_p2h_template_question(): void