http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7304
--- Comment #16 from M. de Rooy <[email protected]> --- (In reply to comment #15) Claire, you are right of course where this leads to a general discussion. Just to make a shortcut for this report: Ian: He only uses MockModule to redefine two routines in Budgets.pm. Julian:: In order to do this without a new dependency, just change the symbol table: *Module::routine= \&mockroutine; Note that if you imported routine, you should use *routine=.. I agree that this code is not really nice, but MockModule just does the same. (Note my earlier comment on mocking in a unit test; I am certainly not promoting mocking routines in unit tests.) I checked this call with perlcritic and it is not complaining. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://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/
