Merge pull request #15922 from spencerrlongg/feature/sc-24347

Requestable/Request Item API Endpoints
This commit is contained in:
snipe
2025-04-01 18:15:42 +01:00
committed by GitHub
12 changed files with 236 additions and 63 deletions

View File

@@ -347,12 +347,22 @@ class AssetFactory extends Factory
public function requestable()
{
return $this->state(['requestable' => true]);
$id = Statuslabel::factory()->create([
'archived' => false,
'deployable' => true,
'pending' => true,
])->id;
return $this->state(['status_id' => $id, 'requestable' => true]);
}
public function nonrequestable()
{
return $this->state(['requestable' => false]);
$id = Statuslabel::factory()->create([
'archived' => true,
'deployable' => false,
'pending' => false,
])->id;
return $this->state(['status_id' => $id, 'requestable' => false]);
}
public function noPurchaseOrEolDate()