add test batches

This commit is contained in:
root
2026-06-08 23:45:55 -04:00
parent c792b8be05
commit 8d4d610b82
1480 changed files with 22587 additions and 10762 deletions
@@ -2,7 +2,6 @@
namespace Tests\Unit\Services\Promotions;
use App\Models\LevelProgression;
use App\Models\StudentPromotionRecord;
use App\Services\Promotions\LevelProgressionService;
use App\Services\Promotions\PromotionAuditService;
@@ -76,7 +75,7 @@ class PromotionEligibilityServiceTest extends TestCase
$this->seedDecision($studentId, '2025-2026', 90.0, 'promoted');
// Mark Youth as terminal
LevelProgression::query()->where('current_level_name', 'Youth')->update(['is_terminal' => 1]);
\App\Models\LevelProgression::query()->where('current_level_name', 'Youth')->update(['is_terminal' => 1]);
$service = $this->makeService();
$record = $service->evaluateStudent($studentId, '2025-2026', 1);
@@ -109,10 +108,9 @@ class PromotionEligibilityServiceTest extends TestCase
private function makeService(): PromotionEligibilityService
{
$progression = new LevelProgressionService;
$audit = new PromotionAuditService;
$progression = new LevelProgressionService();
$audit = new PromotionAuditService();
$status = new PromotionStatusService($audit);
return new PromotionEligibilityService($progression, $status, $audit);
}
@@ -175,4 +173,4 @@ class PromotionEligibilityServiceTest extends TestCase
'updated_at' => now(),
]);
}
}
}