shouldReceive('resolveForSchoolYear') ->once() ->with('2025-2026', null) ->andReturn([ 'school_year' => '2025-2026', 'semester' => null, 'student_ids' => [], 'student_codes' => [], 'students' => [], 'student_code_to_id' => [], 'existing_ids' => [], 'debug' => [ 'class_students' => 0, 'student_ids' => 0, ], ]); $service = new AttendancePendingViolationService($attendanceData, $rules, $resolver); $result = $service->getPendingViolations('2025-2026'); $this->assertSame([], $result['students']); $this->assertSame('No student identifiers found for the current school year.', $result['error']); } }