Bug 24602: Tests for get_onshlefholds_policy
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 6 Feb 2020 14:09:12 +0000 (11:09 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 10 Feb 2020 08:56:30 +0000 (08:56 +0000)
commit661e598d7035fe74b25e2d7ceef338fba38aa18d
treea9b77ab4dc8608f445b9f0b04d779f00e1313fee
parent99e2fbd0832bee58e84724cd19b74e683d10520f
Bug 24602: Tests for get_onshlefholds_policy

Ths patch introduces tests for get_onshelf_policy.
To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/CirculationRules.t
=> FAIL: Tests fail because the current code returns undef instead of 0

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
t/db_dependent/Koha/CirculationRules.t