From 837a9125eaee22673403c0fa91a2a922672f8a07 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Mon, 21 Jun 2021 15:40:50 +0200 Subject: [PATCH] Bug 28503: [20.11.x] fix unit tests Impact of Bug 27069 https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27069 (cherry picked from commit 1b84f0de97a04154f4f734717027838d43f0c11e) Signed-off-by: Victor Grousset/tuxayo --- t/db_dependent/Reserves.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/db_dependent/Reserves.t b/t/db_dependent/Reserves.t index 42e2958c21..a3b79e9097 100755 --- a/t/db_dependent/Reserves.t +++ b/t/db_dependent/Reserves.t @@ -1177,7 +1177,7 @@ subtest 'CheckReserves additional tests' => sub { branchcode => undef, itemtype => $item_A->itype, rule_name => 'holdallowed', - rule_value => 'from_home_library' + rule_value => 1 }); my $reserve_id = AddReserve( { @@ -1197,7 +1197,7 @@ subtest 'CheckReserves additional tests' => sub { branchcode => $item_A->homebranch, itemtype => $item_A->itype, rule_name => 'holdallowed', - rule_value => 'from_any_library' + rule_value => 2 }); ( $status, $matched_reserve, $possible_reserves ) = CheckReserves( $item_A->itemnumber ); is( $status, "Reserved", "We fill the hold with item A because item's branch rule says allow any"); @@ -1211,7 +1211,7 @@ subtest 'CheckReserves additional tests' => sub { branchcode => $patron_B->branchcode, itemtype => $item_A->itype, rule_name => 'holdallowed', - rule_value => 'from_any_library' + rule_value => 2 }); ( $status, $matched_reserve, $possible_reserves ) = CheckReserves( $item_A->itemnumber ); is( $status, "Reserved", "We fill the hold with item A because patron's branch rule says allow any"); -- 2.39.5