]> git.koha-community.org Git - koha.git/commit
Bug 11338: add unit tests for DelItemCheck
authorGalen Charlton <gmc@esilibrary.com>
Wed, 25 Dec 2013 17:07:53 +0000 (17:07 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 25 Dec 2013 17:07:53 +0000 (17:07 +0000)
commit18888359b6744a1e65e34649c927e7c146f628f8
treeda217b6e6961829591165598723740581c30dd81
parent3ec4a02418a9c3372c590b8eb614e8c6466ff45e
Bug 11338: add unit tests for DelItemCheck

This patch adds unit tests for two parts of DelItemCheck: checking
if the item is on loan, and checking if it is waiting on the hold
shelf.

To test:

[1] Verify that prove -v t/db_dependent/Circulation/IsItemIssued.t
    is successful.
[2] Verify that prove -v t/db_dependent/Reserves.t is *not*
    successful -- as it turns out, there was a latent bug where items
    waiting on the hold shelf or in transit to fill a hold could still
    be deleted without any warning.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
t/db_dependent/Circulation/IsItemIssued.t
t/db_dependent/Reserves.t