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

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Dec 13 16:29:01 CET 2013


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

Kyle M Hall <kyle at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kyle at bywatersolutions.com

--- Comment #26 from Kyle M Hall <kyle at bywatersolutions.com> ---
(In reply to Jonathan Druart from comment #24)
> unit tests should be provided for the new IsSuperLibrarian routine.

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.

On the other hand, this subroutine is literally two lines. If you have an idea
on how to unit test this sub, please let me know!

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


More information about the Koha-bugs mailing list