[Koha-bugs] [Bug 10277] Add C4::Context->IsSuperLibrarian()

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Dec 18 16:31:20 CET 2013


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

--- Comment #32 from Kyle M Hall <kyle at bywatersolutions.com> ---
Great work! Thanks! I had attempted a UT using MockModule, but I must have been
setting it up incorrectly.


(In reply to Jonathan Druart from comment #30)
> (In reply to Kyle M Hall from comment #26)
> > I have been unable to find a good way to UT this sub. MockModule doesn't
> > seem to work in this context, since we are trying to mock a subroutine
> > outside the module and then use the mocked sub inside the module.
> 
> It seems to work using MockModule. Have a look at my patch.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list