From 7e9866a678fd7b2601a6f5c3f669ef8ccfb3c2db Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Fri, 15 Sep 2023 14:01:17 +0000 Subject: [PATCH] Bug 34666: (Rmaint follow-up) Fix unit test Unit tests were failing as 22.11.x does not have bug 31375 backported. An undef parameter needed passing to the function to simulate this --- 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 f196ed050e..f5eae970ed 100755 --- a/t/db_dependent/Reserves.t +++ b/t/db_dependent/Reserves.t @@ -17,7 +17,7 @@ use Modern::Perl; -use Test::More tests => 78; +use Test::More tests => 79; use Test::MockModule; use Test::Warn; @@ -1813,7 +1813,7 @@ subtest '_Findgroupreserves' => sub { ); # When the hold is title level and in the hold fill targets we expect this to be the only hold returned - my @reserves = C4::Reserves::_Findgroupreserve( $item->biblionumber, $item->id, 0, [] ); + my @reserves = C4::Reserves::_Findgroupreserve( undef, $item->biblionumber, $item->id, 0, [] ); is( scalar @reserves, 1, "We should only get the hold that is in the map" ); is( $reserves[0]->{reserve_id}, $reserve_id_1, "We got the expected reserve" ); @@ -1827,7 +1827,7 @@ subtest '_Findgroupreserves' => sub { ); # When the hold is title level and in the hold fill targets we expect this to be the only hold returned - @reserves = C4::Reserves::_Findgroupreserve( $item->biblionumber, $item_2->id, 0, [] ); + @reserves = C4::Reserves::_Findgroupreserve( undef, $item->biblionumber, $item_2->id, 0, [] ); is( scalar @reserves, 1, "We should only get the item level hold that is in the map" ); is( $reserves[0]->{reserve_id}, $reserve_id_2, "We got the expected reserve" ); -- 2.39.5