From cea5f944a961ae99b73480290556d76733b415ca Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 27 Dec 2013 00:12:41 +0000 Subject: [PATCH] Bug 11338: (follow-up) take IndependentBranches into account for DelItemCheck() test Fixes a test failure if the test database happens to have IndependentBranches set to true. Signed-off-by: Galen Charlton --- t/db_dependent/Reserves.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Reserves.t b/t/db_dependent/Reserves.t index 6906120754..5a1ebfc34c 100755 --- a/t/db_dependent/Reserves.t +++ b/t/db_dependent/Reserves.t @@ -11,6 +11,7 @@ use C4::Biblio; use C4::Items; use C4::Members; use C4::Circulation; +use t::lib::Mocks; use Koha::DateUtils; @@ -271,10 +272,12 @@ is(exists $messages->{ResFound}?1:0, 1, 'AddReturn considers future reserve with # test marking a hold as captured ModReserveAffect($itemnumber, $requesters{'CPL'}, 0); +# avoiding the not_same_branch error +t::lib::Mocks::mock_preference('IndependentBranches', 0); is( DelItemCheck($dbh, $bibnum, $itemnumber), 'book_reserved', - 'item that is capture to fill a hold cannot be deleted', + 'item that is captured to fill a hold cannot be deleted', ); my $letter = ReserveSlip('CPL', $requesters{'CPL'}, $bibnum); -- 2.39.5