From 1b84f0de97a04154f4f734717027838d43f0c11e 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 --- 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 f786cf03bd..a0c502a574 100755 --- a/t/db_dependent/Reserves.t +++ b/t/db_dependent/Reserves.t @@ -1174,7 +1174,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( { @@ -1194,7 +1194,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"); @@ -1208,7 +1208,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