]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 18 Mar 2014 08:27:31 +0000 (09:27 +0100)
commit5998ed2379b3459b28e76b79d181e789ffa00b4c
tree0720525047b4cc68037dd741af1fabfa07f9e292
parentf6ad320c39053a13a7f4e30cd525e074d6c55ec1
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>
(cherry picked from commit d211fa50ede180ed511cdf7f55be6c084abc1ff5)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/Reserves.t