]> git.koha-community.org Git - koha.git/commit
Bug 9761: Unit tests for ConfirmFutureHolds changes
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Wed, 18 Sep 2013 15:06:29 +0000 (17:06 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 25 Sep 2013 00:27:47 +0000 (00:27 +0000)
commitba60c66f05926680c6002c61c74b17bdc060a703
treefda3ea0e7646e3d6c89084e2d85998e7f663156d
parent579b65c9736df56d2dfb4447a2676fa6737655c1
Bug 9761: Unit tests for ConfirmFutureHolds changes

Adds tests for CheckReserves with lookahead parameter.
Adds tests for AddReturn with regard to future reserve messages.
The following test cases are added, resulting in 8 new tests:
a) Add a reserve without date, CheckReserve should return it
b) Add a reserve with future date, CheckReserve should not return it
c) Add a reserve with future date, CheckReserve should return it if lookahead
   is high enough
d) Check ResFound message of AddReturn for future hold

Test plan:
Run the test. No fails?

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