[Koha-bugs] [Bug 22688] TT plugin for pickup locations code wrong
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Apr 11 22:18:10 CEST 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22688
Tomás Cohen Arazi <tomascohen at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Signed Off |Failed QA
--- Comment #7 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Kyle, it seems to me that the test case you picked is the one that doesn't test
pickup limitations (compared to all()).
I think we should test:
- Passing a selected => branchcode, then if selected => 1 is added to the
hashref
- Using mock_userenv({ branchcode => $library->branchcode }) to test the case
in which C4::Context->userenv is used to pick the 'selected' library.
I confess I spend a good amount of time today trying to implement a fully
mocked test, only to learn that there's a problem with the 'selected' param
because it would be passed all the way down to Koha::Libraries->search...
This got into a rabbit hole (writing this tests).
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list