This commit is contained in:
spencerrlongg
2024-10-22 15:09:35 -05:00
parent e40849c910
commit b59bf495e1
6 changed files with 39 additions and 19 deletions
@@ -21,6 +21,15 @@ class AssetCheckoutTest extends TestCase
Event::fake([CheckoutableCheckedOut::class]);
}
public function testCheckoutRequest()
{
$asset = Asset::factory()->create();
$this->actingAsForApi(User::factory()->create())
->post(route('api.assets.requests.store', $asset->id))
->assertOk();
}
public function testCheckingOutAssetRequiresCorrectPermission()
{
$this->actingAsForApi(User::factory()->create())