shouldReceive('resolveForSchoolYear')->andReturn([ 'school_year' => '2025-2026', 'semester' => 'Fall', 'student_ids' => [], 'student_codes' => [], 'students' => [], 'student_code_to_id' => [], 'existing_ids' => [], 'debug' => [], ]); $engine = Mockery::mock(\App\Services\AttendanceTracking\ViolationRuleEngineService::class); $service = new AttendancePendingViolationService( new \App\Models\AttendanceData(), $engine, $resolver ); $result = $service->getPendingViolations('2025-2026', null, null); $this->assertSame('No student identifiers found for the current school year.', $result['error']); } }