markTestIncomplete(); } public function testAssetCheckedOutToAssetCanBeCheckedIn() { $this->markTestIncomplete(); } public function testAssetCheckedOutToLocationCanBeCheckedIn() { $this->markTestIncomplete(); } public function testAssetCheckedOutToUserCanBeCheckedIn() { $this->markTestIncomplete(); } public function testCheckInEmailSentToUserIfSettingEnabled() { $this->markTestIncomplete(); } public function testCheckInEmailNotSentToUserIfSettingDisabled() { $this->markTestIncomplete(); } public function testLastCheckInFieldIsSetOnCheckin() { $admin = User::factory()->superuser()->create(); $asset = Asset::factory()->create(['last_checkin' => null]); $asset->checkOut(User::factory()->create(), $admin, now()); $this->actingAsForApi($admin) ->postJson(route('api.asset.checkin', $asset)) ->assertOk(); $this->assertNotNull( $asset->fresh()->last_checkin, 'last_checkin field should be set on checkin' ); } }