Scaffold tests around asset check in

This commit is contained in:
Marcus Moore 2024-02-12 17:54:22 -08:00
parent 65e20282b6
commit c81bc1d2ee
No known key found for this signature in database

View file

@ -1,6 +1,6 @@
<?php
namespace Tests\Feature\Assets;
namespace Tests\Feature\Checkins;
use App\Models\Asset;
use App\Models\User;
@ -11,6 +11,30 @@ class AssetCheckinTest extends TestCase
{
use InteractsWithSettings;
public function testCheckingInAssetRequiresCorrectPermission()
{
$this->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();