https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39190
--- Comment #161 from Tomás Cohen Arazi (tcohen) <[email protected]> --- Created attachment 185994 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=185994&action=edit Bug 39190: Regression tests for polymorphic object creation This patch adds comprehensive tests to verify that Koha::File::Transports correctly returns polymorphic objects based on the transport field value. The tests cover: - build_object() polymorphic creation - search() with polymorphic resultset iteration - find() with polymorphic object return To test: 1. Apply this patch 2. Run: $ ktd --shell k$ prove t/db_dependent/Koha/File/Transports.t => FAIL: Tests fail - objects return base Koha::File::Transport instead of polymorphic Koha::File::Transport::SFTP/FTP classes Signed-off-by: Tomas Cohen Arazi <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
