Unit tests for pack service

This commit is contained in:
Dane Everitt 2017-08-21 21:00:14 -05:00
parent 2e3476298d
commit b2ec9960a1
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 718 additions and 1 deletions

View file

@ -87,7 +87,7 @@ class PackDeletionService
$pack = $this->repository->withColumns(['id', 'uuid'])->find($pack);
}
$count = $this->serverRepository->findCountWhere([['pack_id', '=', $pack]]);
$count = $this->serverRepository->findCountWhere([['pack_id', '=', $pack->id]]);
if ($count !== 0) {
throw new HasActiveServersException(trans('admin/exceptions.packs.delete_has_servers'));
}