fix gitlab tests
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user