mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 22:37:28 -08:00
Account for null asset in factory state
This commit is contained in:
parent
b63962e90b
commit
6b6e18695f
|
@ -20,7 +20,7 @@ class LicenseSeatFactory extends Factory
|
||||||
{
|
{
|
||||||
return $this->state(function () use ($asset) {
|
return $this->state(function () use ($asset) {
|
||||||
return [
|
return [
|
||||||
'asset_id' => $asset->id,
|
'asset_id' => $asset->id ?? Asset::factory(),
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue