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:
@@ -46,12 +46,6 @@ class FindAssignableAllocationService
|
||||
throw new AutoAllocationNotEnabledException;
|
||||
}
|
||||
|
||||
if ($server->allocations()->count() >= $server->allocation_limit) {
|
||||
throw new DisplayException(
|
||||
'Cannot assign additional allocations to this server: limit has been reached.'
|
||||
);
|
||||
}
|
||||
|
||||
// Attempt to find a given available allocation for a server. If one cannot be found
|
||||
// we will fall back to attempting to create a new allocation that can be used for the
|
||||
// server.
|
||||
|
||||
Reference in New Issue
Block a user