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
@@ -24,7 +24,7 @@ class InvoiceConfigServiceTest extends TestCase
['config_key' => 'refund_deadline', 'config_value' => '2025-10-01'],
]);
$service = new InvoiceConfigService;
$service = new InvoiceConfigService();
$this->assertSame('2025-2026', $service->getSchoolYear());
$this->assertSame('Fall', $service->getSemester());
@@ -77,7 +77,7 @@ class InvoiceGenerationServiceTest extends TestCase
'school_year' => '2025-2026',
]);
$config = new InvoiceConfigService;
$config = new InvoiceConfigService();
$grades = new InvoiceGradeService($config->getGradeFee());
$tuition = new InvoiceTuitionService(
$grades,
@@ -107,7 +107,7 @@ class InvoiceManagementServiceTest extends TestCase
'refund_paid_amount' => 5,
]);
$service = new InvoiceManagementService(new InvoiceConfigService);
$service = new InvoiceManagementService(new InvoiceConfigService());
$data = $service->getManagementData('2025-2026');
$this->assertSame('2025-2026', $data['schoolYear']);
@@ -53,7 +53,7 @@ class InvoicePaymentServiceTest extends TestCase
'refund_paid_amount' => 5,
]);
$service = new InvoicePaymentService(new InvoiceConfigService);
$service = new InvoicePaymentService(new InvoiceConfigService());
$data = $service->getParentInvoiceSummary(10, '2025-2026');
$this->assertSame('2025-2026', $data['selectedYear']);
@@ -89,7 +89,7 @@ class InvoicePdfServiceTest extends TestCase
'school_year' => '2025-2026',
]);
$config = new InvoiceConfigService;
$config = new InvoiceConfigService();
$grades = new InvoiceGradeService($config->getGradeFee());
$service = new InvoicePdfService($config, $grades);