Add test coverage for allocation assignment endpoint

This commit is contained in:
Dane Everitt 2020-10-31 21:57:27 -07:00
parent b2be067f38
commit d493685518
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
6 changed files with 204 additions and 79 deletions

View file

@ -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);