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 1b84f0de97)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
This commit is contained in:
parent
46952297a3
commit
837a9125ea
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue