mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Updated test
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
d89f38bbfb
commit
f4f6dcb885
|
@ -26,20 +26,21 @@ class ExpiringAlertsNotificationTest extends TestCase
|
|||
$alert_email = Setting::first()->alert_email;
|
||||
|
||||
$expiringAsset = Asset::factory()->create([
|
||||
'purchase_date' => now()->subMonths(11)->format('Y-m-d'),
|
||||
'purchase_date' => now()->subDays(350)->format('Y-m-d'),
|
||||
'warranty_months' => 12,
|
||||
'archived' => 0,
|
||||
'deleted_at' => null,
|
||||
]);
|
||||
|
||||
$expiredAsset = Asset::factory()->create([
|
||||
'purchase_date' => now()->subMonths(13)->format('Y-m-d'),
|
||||
'purchase_date' => now()->subDays(370)->format('Y-m-d'),
|
||||
'warranty_months' => 12,
|
||||
'archived' => 0,
|
||||
'deleted_at' => null,
|
||||
]);
|
||||
|
||||
$notExpiringAsset = Asset::factory()->create([
|
||||
'purchase_date' => now()->subMonths(10)->format('Y-m-d'),
|
||||
'purchase_date' => now()->subDays(330)->format('Y-m-d'),
|
||||
'warranty_months' => 12,
|
||||
'archived' => 0,
|
||||
'deleted_at' => null,
|
||||
|
|
Loading…
Reference in a new issue