feat(timesheet): dynamically filter operators by equipment SIMPER in QMA heavy equipment timesheet

This commit is contained in:
Ray1111-aa
2026-10-28 14:18:47 +07:00
parent 852404be32
commit 68ff69e8e4
5 changed files with 279 additions and 22 deletions
@@ -139,6 +139,11 @@ class PhotoUploadAndCompressionTest extends TestCase
$deleteResponse->assertRedirect();
$this->assertSoftDeleted('vehicles', ['id' => $vehicle->id]);
// Foto tetap dipertahankan saat soft delete agar dapat dipulihkan dari Trash/Recycle Bin
Storage::disk('public')->assertExists($photoPath);
// Ketika dihapus permanen melalui TrashService, file fisik baru terhapus
app(\App\Services\TrashService::class)->forceDeleteItem('vehicles', $vehicle->id);
Storage::disk('public')->assertMissing($photoPath);
}