Source: PR #267 (Convert Disabled Real-Injection Tests to Unit Tests, issue #264). Converts GUI-dependent integration tests to mock-based unit tests using a temp-file harness. Enables reliable CI testing without live desktop. Ready to merge after review; consolidate with PR #275 if overlapping.