add tests batch 20
This commit is contained in:
@@ -9,7 +9,7 @@ class FeeGradeServiceTest extends TestCase
|
||||
{
|
||||
public function test_grade_level_parsing(): void
|
||||
{
|
||||
$service = new FeeGradeService;
|
||||
$service = new FeeGradeService();
|
||||
|
||||
$this->assertSame(0, $service->getGradeLevel('K'));
|
||||
$this->assertSame(99, $service->getGradeLevel('Y'));
|
||||
@@ -19,7 +19,7 @@ class FeeGradeServiceTest extends TestCase
|
||||
|
||||
public function test_compare_grades_orders_numeric_then_suffix(): void
|
||||
{
|
||||
$service = new FeeGradeService;
|
||||
$service = new FeeGradeService();
|
||||
|
||||
$this->assertSame(-1, $service->compareGrades('2', '3'));
|
||||
$this->assertSame(-1, $service->compareGrades('3-A', '3-B'));
|
||||
|
||||
@@ -225,8 +225,8 @@ class FeeRefundCalculatorServiceTest extends TestCase
|
||||
private function makeService(): FeeRefundCalculatorService
|
||||
{
|
||||
return new FeeRefundCalculatorService(
|
||||
new FeeConfigService,
|
||||
new FeeStudentFeeService(new FeeGradeService, new FeeConfigService)
|
||||
new FeeConfigService(),
|
||||
new FeeStudentFeeService(new FeeGradeService(), new FeeConfigService())
|
||||
);
|
||||
}
|
||||
|
||||
@@ -258,7 +258,7 @@ class FeeRefundCalculatorServiceTest extends TestCase
|
||||
{
|
||||
$invoiceId = DB::table('invoices')->insertGetId([
|
||||
'parent_id' => $parentId,
|
||||
'invoice_number' => 'INV-'.$parentId,
|
||||
'invoice_number' => 'INV-' . $parentId,
|
||||
'total_amount' => $amount,
|
||||
'balance' => 0.00,
|
||||
'paid_amount' => $amount,
|
||||
|
||||
@@ -55,7 +55,7 @@ class FeeRefundDetailServiceTest extends TestCase
|
||||
'status' => 'Paid',
|
||||
]);
|
||||
|
||||
$service = new FeeRefundDetailService;
|
||||
$service = new FeeRefundDetailService();
|
||||
$result = $service->calculateRefundDetails([
|
||||
[
|
||||
'student_id' => 1,
|
||||
|
||||
@@ -138,7 +138,7 @@ class FeeStudentFeeServiceTest extends TestCase
|
||||
|
||||
private function makeService(): FeeStudentFeeService
|
||||
{
|
||||
return new FeeStudentFeeService(new FeeGradeService, new FeeConfigService);
|
||||
return new FeeStudentFeeService(new FeeGradeService(), new FeeConfigService());
|
||||
}
|
||||
|
||||
private function seedFeeConfig(): void
|
||||
|
||||
@@ -148,11 +148,10 @@ class TuitionCalculationServiceTest extends TestCase
|
||||
|
||||
private function makeService(): TuitionCalculationService
|
||||
{
|
||||
$config = new FeeConfigService;
|
||||
|
||||
$config = new FeeConfigService();
|
||||
return new TuitionCalculationService(
|
||||
$config,
|
||||
new FeeStudentFeeService(new FeeGradeService, $config)
|
||||
new FeeStudentFeeService(new FeeGradeService(), $config)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user