add tests batch 20
This commit is contained in:
@@ -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(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user