[Koha-bugs] [Bug 25113] Make CirculationRules.t flexible for new scope combinations
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sat Apr 11 21:58:11 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25113
--- Comment #1 from Lari Taskula <lari.taskula at hypernova.fi> ---
Created attachment 102765
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=102765&action=edit
Bug 25113: Refactor CirculationRules.t when testing scope combinations
We used to test rule scopes by explicitly defining each combination.
When adding new scopes, it is much easier if these tests are auto-
generated for you so that you don't have to repeat similar code.
This patch removes those "duplicates" and adds a method that returns
test cases for each scope as follows:
branchcode categorycode itemtype
__________ ____________ ________
branchcode categorycode itemtype
branchcode categorycode *
branchcode * itemtype
branchcode * *
* categorycode itemtype
* categorycode *
* * itemtype
* * *
And automatically extends the test when new scopes are added.
This also obsoletes the "Get effective issuing rule in correct order"
test in t/db_dependent/Koha/IssuingRules.t
To test:
1. prove t/db_dependent/Koha/CirculationRules.t
Sponsored-by: The National Library of Finland
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list