add tests batch 20

This commit is contained in:
root
2026-06-09 01:03:53 -04:00
parent 95efb9652e
commit 6be4875c5e
1502 changed files with 13797 additions and 11313 deletions
@@ -2,8 +2,6 @@
namespace Tests\Unit\Services\Attendance;
use App\Models\AttendanceData;
use App\Models\Student;
use App\Services\Attendance\AttendanceRecordSyncService;
use App\Services\Attendance\StudentAttendanceWriterService;
use Illuminate\Foundation\Testing\RefreshDatabase;
@@ -31,7 +29,7 @@ class StudentAttendanceWriterServiceTest extends TestCase
]);
$sync = Mockery::mock(AttendanceRecordSyncService::class);
$service = new StudentAttendanceWriterService(new AttendanceData, new Student, $sync);
$service = new StudentAttendanceWriterService(new \App\Models\AttendanceData(), new \App\Models\Student(), $sync);
$this->assertSame('S1', $service->resolveStudentSchoolId(1, null));
}
@@ -67,7 +65,7 @@ class StudentAttendanceWriterServiceTest extends TestCase
$sync = Mockery::mock(AttendanceRecordSyncService::class);
$sync->shouldReceive('updateAttendanceRecord')->once();
$service = new StudentAttendanceWriterService(new AttendanceData, new Student, $sync);
$service = new StudentAttendanceWriterService(new \App\Models\AttendanceData(), new \App\Models\Student(), $sync);
$service->saveOrUpdateStudentAttendance([
'class_section_id' => 1,