From e835637ef0120a96012951a965848ecb8465e69f Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Mon, 16 Sep 2024 16:40:10 -0700 Subject: [PATCH] Add accessory checkin test --- .../Checkins/Api/AccessoryCheckinTest.php | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/Feature/Checkins/Api/AccessoryCheckinTest.php diff --git a/tests/Feature/Checkins/Api/AccessoryCheckinTest.php b/tests/Feature/Checkins/Api/AccessoryCheckinTest.php new file mode 100644 index 0000000000..925d9dd050 --- /dev/null +++ b/tests/Feature/Checkins/Api/AccessoryCheckinTest.php @@ -0,0 +1,20 @@ +checkedOutToUser()->create(); + + $this->actingAsForApi(User::factory()->create()) + ->postJson(route('api.accessories.checkin', $accessory)) + ->assertForbidden(); + } +}