Lines 7-13
use t::lib::TestBuilder;
Link Here
|
7 |
|
7 |
|
8 |
use C4::Context; |
8 |
use C4::Context; |
9 |
|
9 |
|
10 |
use Test::More tests => 65; |
10 |
use Test::More tests => 66; |
11 |
use MARC::Record; |
11 |
use MARC::Record; |
12 |
|
12 |
|
13 |
use C4::Biblio; |
13 |
use C4::Biblio; |
Lines 365-370
t::lib::Mocks::mock_preference( 'TrapHoldsOnOrder', 1 );
Link Here
|
365 |
ok( defined( ( CheckReserves($itemnumber) )[1] ), "Hold is trapped for item that is not for loan but holdable ( notforloan < 0 )" ); |
365 |
ok( defined( ( CheckReserves($itemnumber) )[1] ), "Hold is trapped for item that is not for loan but holdable ( notforloan < 0 )" ); |
366 |
t::lib::Mocks::mock_preference( 'SkipHoldTrapOnNotForLoanValue', '-1' ); |
366 |
t::lib::Mocks::mock_preference( 'SkipHoldTrapOnNotForLoanValue', '-1' ); |
367 |
ok( !defined( ( CheckReserves($itemnumber) )[1] ), "Hold cannot be trapped for item with notforloan value matching SkipHoldTrapOnNotForLoanValue" ); |
367 |
ok( !defined( ( CheckReserves($itemnumber) )[1] ), "Hold cannot be trapped for item with notforloan value matching SkipHoldTrapOnNotForLoanValue" ); |
|
|
368 |
t::lib::Mocks::mock_preference( 'SkipHoldTrapOnNotForLoanValue', '-1|1' ); |
369 |
ok( !defined( ( CheckReserves($itemnumber) )[1] ), "Hold cannot be trapped for item with notforloan value matching SkipHoldTrapOnNotForLoanValue" ); |
368 |
$hold->delete(); |
370 |
$hold->delete(); |
369 |
|
371 |
|
370 |
# Regression test for bug 9532 |
372 |
# Regression test for bug 9532 |
371 |
- |
|
|