https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39190 --- Comment #189 from Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> --- Created attachment 186428 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=186428&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 <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.