Add test coverage for allocation assignment endpoint
This commit is contained in:
parent
b2be067f38
commit
d493685518
6 changed files with 204 additions and 79 deletions
|
@ -71,6 +71,8 @@ trait CreatesTestModels
|
|||
|
||||
$server = $factory->of(Server::class)->create($attributes);
|
||||
|
||||
Allocation::query()->where('id', $server->allocation_id)->update(['server_id' => $server->id]);
|
||||
|
||||
return Server::with([
|
||||
'location', 'user', 'node', 'allocation', 'nest', 'egg',
|
||||
])->findOrFail($server->id);
|
||||
|
|
Reference in a new issue