mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Align test with actual values passed from the web
This commit is contained in:
parent
c401c88702
commit
29d729171c
|
@ -156,12 +156,12 @@ class AssetCheckinTest extends TestCase
|
||||||
'hardware.checkin.store',
|
'hardware.checkin.store',
|
||||||
['assetId' => Asset::factory()->assignedToUser()->create()->id]
|
['assetId' => Asset::factory()->assignedToUser()->create()->id]
|
||||||
), [
|
), [
|
||||||
'checkin_at' => '2023-01-02 12:34:56',
|
'checkin_at' => '2023-01-02',
|
||||||
'note' => 'hello'
|
'note' => 'hello'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Event::assertDispatched(function (CheckoutableCheckedIn $event) {
|
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);
|
}, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue