]> git.koha-community.org Git - koha.git/commit
bug 10495: set precondition for HoldsQueue test
authorGalen Charlton <gmc@esilibrary.com>
Wed, 19 Jun 2013 17:30:58 +0000 (10:30 -0700)
committerBernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Tue, 16 Jul 2013 11:57:35 +0000 (08:57 -0300)
commite6a2906a2fb44252f939733b699b0d0255a8ec83
tree94e9e4a247c1e4f1f40c25fa878025832e51b2b3
parent0c09391f197e2c40745c0a52177c554ab5e29504
bug 10495: set precondition for HoldsQueue test

t/db_dependent/HoldsQueue.t assumed, but did not check,
that the AutomaticItemReturns system preference was off
at the beginning of the test un.  This patch makes sure
that that assumption is met.

To test:

[1] Make sure that at least one item is on loan (this is
    another assumption that the test case makes, one
    that should be corrected with the work proposed
    for bug 10336.
[2] Turn the AutomaticItemReturn system preference on.
[3] Run the test:

prove -v t/db_dependent/HoldsQueue.t

[4] Tests 4 and 6 should fail.
[5] Apply the patch.
[6] Run the test case again; this time, all tests should pass.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 4e51ec5aae50c878bbdca6994361b12d7ba20d0a)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 20d43f6c02e2bc3fbc1a79b00b995c128a4b41ef)
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
(cherry picked from commit 20d43f6c02e2bc3fbc1a79b00b995c128a4b41ef)
t/db_dependent/HoldsQueue.t