bug 2394: regression test for canreservefromotherbranches
authorGalen Charlton <gmc@esilibrary.com>
Fri, 9 Aug 2013 17:40:54 +0000 (17:40 +0000)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 10 Sep 2013 15:39:14 +0000 (12:39 -0300)
commit3d05ea27a7237006d1256df9b476f4886b027233
treeb78032d3cf32aa7e90fbb71a7f9ef85badb2411a
parent6df54fd2fa2e33166c5c6e24b5aabf8299ed5ef9
bug 2394: regression test for canreservefromotherbranches

If IndependentBranches is ON and canreservefromotherbranches is OFF,
a patron is not permittedo to request an item whose homebranch (i.e.,
owner of the item) is different from the patron's own library.
However, if canreservefromotherbranches is turned ON, the patron can
create such hold requests.

Note that canreservefromotherbranches has no effect if
IndependentBranches is OFF.

To test, run prove -v t/db_dependent/Holds.t.  Without the bugfix
patch for bug 2394, the last two tests should fail.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 23e302071efabd824f0a6c69bc68dee4cfc13e5b)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
The Holds.t file was introduced by 9394 which refactors several lines of code and thus i'm not cherry-picking in the stable branch.
I'm just cherry-picking Galen's regression tests.
t/db_dependent/Holds.t [new file with mode: 0755]