integration test cleanup

This commit is contained in:
Matthew Penner
2021-01-15 19:07:03 -07:00
parent c59604c345
commit 4ac49fbfb3
2 changed files with 6 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ trait CreatesTestModels
*
* @param array $attributes
*
* @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static|static[]
* @return \Pterodactyl\Models\Server
*/
public function createServerModel(array $attributes = [])
{
@@ -77,9 +77,9 @@ trait CreatesTestModels
Allocation::query()->where('id', $server->allocation_id)->update(['server_id' => $server->id]);
return Server::with([
return $server->fresh([
'location', 'user', 'node', 'allocation', 'nest', 'egg',
])->findOrFail($server->id);
]);
}
/**