fix gitlab tests

This commit is contained in:
root
2026-06-09 02:32:58 -04:00
parent 20a0b6c4e5
commit 6def9993da
1489 changed files with 10449 additions and 11356 deletions
@@ -192,13 +192,13 @@ class BalanceCalculationServiceTest extends TestCase
private function makeService(): BalanceCalculationService
{
$config = new FeeConfigService;
$config = new FeeConfigService();
$tuition = new TuitionCalculationService(
$config,
new FeeStudentFeeService(new FeeGradeService, $config)
new FeeStudentFeeService(new FeeGradeService(), $config)
);
return new BalanceCalculationService($config, $tuition, new BillingTotalsService);
return new BalanceCalculationService($config, $tuition, new BillingTotalsService());
}
private function seedFeeConfig(): void
@@ -226,7 +226,7 @@ class BalanceCalculationServiceTest extends TestCase
{
return (int) DB::table('invoices')->insertGetId([
'parent_id' => $parentId,
'invoice_number' => 'INV-'.$parentId,
'invoice_number' => 'INV-' . $parentId,
'total_amount' => $total,
'balance' => 0.00,
'paid_amount' => 0.00,
@@ -51,7 +51,7 @@ class BillingTotalsServiceTest extends TestCase
],
]);
$service = new BillingTotalsService;
$service = new BillingTotalsService();
$eventSubtotal = $service->eventSubtotal(10, '2025-2026');
$additionalSubtotal = $service->additionalSubtotal(99, '2025-2026');
@@ -95,7 +95,7 @@ class BillingTotalsServiceTest extends TestCase
],
]);
$service = new BillingTotalsService;
$service = new BillingTotalsService();
$this->assertSame(30.0, $service->additionalSubtotalByParent(10, '2025-2026'));
}
@@ -126,7 +126,7 @@ class BillingTotalsServiceTest extends TestCase
],
]);
$service = new BillingTotalsService;
$service = new BillingTotalsService();
$byStudent = $service->eventSubtotalsByStudent(5, '2025-2026');
$this->assertSame(20.0, $byStudent[1]);