]> git.koha-community.org Git - koha.git/commit
Bug 9788: (follow-up) Unit tests for changed routine GetReservesFromItemnumber
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 26 Sep 2013 10:22:51 +0000 (12:22 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 17 Jan 2014 05:11:48 +0000 (05:11 +0000)
commitd211fa50ede180ed511cdf7f55be6c084abc1ff5
tree9b891b8e624df4836586ccdb9ef4d7c57f3eda8e
parent38edd714c598322e81a32a0dfc5f2ce0da46826d
Bug 9788: (follow-up) Unit tests for changed routine GetReservesFromItemnumber

Adds three tests to Reserves.t for GetReservesFromItemnumber.
We test if this routine does not return a future next available hold,
a future item level hold. And if it does return a future wait (that is:
a confirmed future hold, using ConfirmFutureHolds).

Note that Holds.t does also contains some basic tests for this routine,
but the additional tests seem to better located in the direct context of
tests for bug 9761 for ConfirmFutureHolds.

Test plan:
Run both t/db_dependent/Holds.t and t/db_dependent/Reserves.t.
Verify if both tests do not fail.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
t/db_dependent/Reserves.t