mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 23:03:45 +02:00
Add test coverage for allocation assignment endpoint
This commit is contained in:
@@ -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 New Issue
Block a user