Bug 15486: Unit tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 19 Jul 2017 19:30:24 +0000 (16:30 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 24 Oct 2018 13:24:04 +0000 (13:24 +0000)
commitdad1324b1b25ac018dad84176537c298edffa75d
tree2ab14c2a00c52503488cb2e99c857d9b8b55423f
parent0d68871836554cf4eb7dd2c1f44aa136fb041157
Bug 15486: Unit tests

This patch introduces unit tests for the new circulation rules option
that allows setting a max holds per day limit.

To test:
- Apply the patch
- Run:
  $ sudo koha-shell kohadev
 k$ cd kohaclone
 k$ prove t/db_dependent/Holds.t
=> FAIL: CanItemBeReserved doesn't check the amount of holds per day
   and the introduced error code is not returned. OK is returned
   instead.

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
t/db_dependent/Holds.t