fix logic and tests, update docker CI file
This commit is contained in:
@@ -45,6 +45,7 @@ class ClassPreparationCalculatorServiceTest extends TestCase
|
||||
'class_section_id' => 101,
|
||||
'teacher_id' => 1,
|
||||
'position' => 'main',
|
||||
'semester' => 'Fall',
|
||||
'school_year' => '2025-2026',
|
||||
]);
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ class ClassPreparationServiceTest extends TestCase
|
||||
{
|
||||
$this->seedPrepData();
|
||||
|
||||
$service = new ClassPreparationService();
|
||||
$service = app(ClassPreparationService::class);
|
||||
$payload = $service->listPrep('2025-2026', 'Fall');
|
||||
|
||||
$this->assertSame('2025-2026', $payload['schoolYear']);
|
||||
@@ -28,7 +28,7 @@ class ClassPreparationServiceTest extends TestCase
|
||||
{
|
||||
$this->seedPrepData();
|
||||
|
||||
$service = new ClassPreparationService();
|
||||
$service = app(ClassPreparationService::class);
|
||||
$count = $service->markPrinted('2025-2026', 'Fall', [101]);
|
||||
|
||||
$this->assertSame(1, $count);
|
||||
|
||||
Reference in New Issue
Block a user