From c81bc1d2ee853fa8ab70238a0da1986dbc28e100 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Mon, 12 Feb 2024 17:54:22 -0800 Subject: [PATCH] Scaffold tests around asset check in --- .../{Assets => Checkins}/AssetCheckinTest.php | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) rename tests/Feature/{Assets => Checkins}/AssetCheckinTest.php (53%) diff --git a/tests/Feature/Assets/AssetCheckinTest.php b/tests/Feature/Checkins/AssetCheckinTest.php similarity index 53% rename from tests/Feature/Assets/AssetCheckinTest.php rename to tests/Feature/Checkins/AssetCheckinTest.php index 059fb1294f..2ec5f78318 100644 --- a/tests/Feature/Assets/AssetCheckinTest.php +++ b/tests/Feature/Checkins/AssetCheckinTest.php @@ -1,6 +1,6 @@ actingAs(User::factory()->create()) + ->post(route('hardware.checkin.store', [ + 'assetId' => Asset::factory()->assignedToUser()->create()->id, + ])) + ->assertForbidden(); + } + + public function testAssetCanBeCheckedIn() + { + $this->markTestIncomplete(); + } + + public function testCheckInEmailSentToUserIfSettingEnabled() + { + $this->markTestIncomplete(); + } + + public function testCheckInEmailNotSentToUserIfSettingDisabled() + { + $this->markTestIncomplete(); + } + public function testLastCheckInFieldIsSetOnCheckin() { $admin = User::factory()->superuser()->create();