[Koha-bugs] [Bug 7304] Working on funds ergonomic display and funds management by multi librarians

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jun 15 13:05:04 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7304

--- Comment #16 from M. de Rooy <m.de.rooy at rijksmuseum.nl> ---
(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.


More information about the Koha-bugs mailing list