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
@@ -12,7 +12,7 @@ class FinancialChartServiceTest extends TestCase
public function test_generate_charts_returns_null_in_tests(): void
{
$service = new FinancialChartService;
$service = new FinancialChartService();
$summary = [
'totalCharges' => 100,
@@ -68,7 +68,7 @@ class FinancialPaymentServiceTest extends TestCase
],
]);
$service = new FinancialPaymentService;
$service = new FinancialPaymentService();
$payments = $service->paymentsByInvoice('2025-2026', '2025-01-01', '2025-01-31');
$breakdown = $service->paymentBreakdown('2025-2026', '2025-01-01', '2025-01-31');
@@ -13,7 +13,7 @@ class FinancialPdfReportServiceTest extends TestCase
public function test_build_pdf_returns_bytes(): void
{
$service = new FinancialPdfReportService(new FinancialChartService);
$service = new FinancialPdfReportService(new FinancialChartService());
$summary = [
'schoolYear' => '2025-2026',
@@ -112,8 +112,8 @@ class FinancialReportServiceTest extends TestCase
]);
$service = new FinancialReportService(
new FinancialPaymentService,
new FinancialSchoolYearService
new FinancialPaymentService(),
new FinancialSchoolYearService()
);
$report = $service->getReport('2025-01-01', '2025-12-31', '2025-2026');
@@ -42,7 +42,7 @@ class FinancialSchoolYearServiceTest extends TestCase
],
]);
$service = new FinancialSchoolYearService;
$service = new FinancialSchoolYearService();
$years = $service->listYears();
$this->assertSame(['2025-2026', '2024-2025'], $years);
@@ -163,7 +163,7 @@ class FinancialSummaryServiceTest extends TestCase
],
]);
$service = new FinancialSummaryService(new FinancialDonationRecipientService);
$service = new FinancialSummaryService(new FinancialDonationRecipientService());
$summary = $service->getSummary('2025-01-01', '2025-12-31', '2025-2026');
$this->assertSame(120.0, $summary['totalCharges']);
@@ -99,7 +99,7 @@ class FinancialUnpaidParentsServiceTest extends TestCase
'status' => 'pending',
]);
$service = new FinancialUnpaidParentsService(new FinancialSchoolYearService);
$service = new FinancialUnpaidParentsService(new FinancialSchoolYearService());
$result = $service->getUnpaidParents('2025-2026');
$this->assertSame('2025-2026', $result['schoolYear']);