add more controllers and fix tests

This commit is contained in:
root
2026-03-09 11:54:13 -04:00
parent 0c3e9b16f7
commit 1cb3573d4b
74 changed files with 2761 additions and 2728 deletions
@@ -0,0 +1,28 @@
<?php
namespace Tests\Unit\Services\Fees;
use App\Services\Fees\FeeGradeService;
use Tests\TestCase;
class FeeGradeServiceTest extends TestCase
{
public function test_grade_level_parsing(): void
{
$service = new FeeGradeService();
$this->assertSame(0, $service->getGradeLevel('K'));
$this->assertSame(99, $service->getGradeLevel('Y'));
$this->assertSame(3, $service->getGradeLevel('3-A'));
$this->assertSame(999, $service->getGradeLevel('Unknown'));
}
public function test_compare_grades_orders_numeric_then_suffix(): void
{
$service = new FeeGradeService();
$this->assertSame(-1, $service->compareGrades('2', '3'));
$this->assertSame(-1, $service->compareGrades('3-A', '3-B'));
$this->assertSame(1, $service->compareGrades('4', '3'));
}
}