add tests batch 20

This commit is contained in:
root
2026-06-09 01:03:53 -04:00
parent 95efb9652e
commit 6be4875c5e
1502 changed files with 13797 additions and 11313 deletions
@@ -53,7 +53,7 @@ class ClassController extends BaseApiController
$section = $this->queryService->find((int) $classSection->id);
if (! $section) {
if (!$section) {
return $this->error('Class section not found.', Response::HTTP_NOT_FOUND);
}
@@ -88,7 +88,7 @@ class ClassController extends BaseApiController
{
$this->authorize('delete', $classSection);
if (! $this->commandService->delete($classSection)) {
if (!$this->commandService->delete($classSection)) {
return $this->error('Class section not found.', Response::HTTP_NOT_FOUND);
}
@@ -125,8 +125,7 @@ class ClassController extends BaseApiController
try {
$created = $this->seedService->seedDefaults();
} catch (\Throwable $e) {
Log::error('Seeding default classes failed: '.$e->getMessage());
Log::error('Seeding default classes failed: ' . $e->getMessage());
return $this->error('Unable to seed default classes.', Response::HTTP_INTERNAL_SERVER_ERROR);
}