Skip to content

A free open source IT asset/license management system

Align test with actual values passed from the web

Marcus Moore29d729171c45
diff --git a/tests/Feature/Checkins/AssetCheckinTest.php b/tests/Feature/Checkins/AssetCheckinTest.php
index 3452b14c10..a8e26312be 100644
--- a/tests/Feature/Checkins/AssetCheckinTest.php
+++ b/tests/Feature/Checkins/AssetCheckinTest.php
@@ -156,12 +156,12 @@ class AssetCheckinTest extends TestCase
'hardware.checkin.store',
['assetId' => Asset::factory()->assignedToUser()->create()->id]
), [
- 'checkin_at' => '2023-01-02 12:34:56',
+ 'checkin_at' => '2023-01-02',
'note' => 'hello'
]);
Event::assertDispatched(function (CheckoutableCheckedIn $event) {
- return $event->action_date === '2023-01-02 12:34:56' && $event->note === 'hello';
+ return $event->action_date === '2023-01-02' && $event->note === 'hello';
}, 1);
}
}