From 5b2f701fd3a87e52b59fb63a5b1998b644a57ff2 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 12 Jan 2016 16:04:55 +0000 Subject: [PATCH] Bug 14598 [QA Followup] - Make unit test pass Signed-off-by: Tomas Cohen Arazi --- t/db_dependent/Circulation/Returns.t | 38 +++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/t/db_dependent/Circulation/Returns.t b/t/db_dependent/Circulation/Returns.t index 75cf63b..fd21d8f 100644 --- a/t/db_dependent/Circulation/Returns.t +++ b/t/db_dependent/Circulation/Returns.t @@ -124,24 +124,30 @@ subtest "AddReturn logging on statistics table (item-level_itypes=1)" => sub { MARC::Field->new($tagfield,'','', $tagsubfield => $blevel_itemtype ) ); my ( $biblionumber, $biblioitemnumber ) = AddBiblio( $record, '' ); - my $item_with_itemtype = $builder->build({ - source => 'Item', - value => { - biblionumber => $biblionumber, - homebranch => $branch, - holdingbranch => $branch, - itype => $ilevel_itemtype + my $item_with_itemtype = $builder->build( + { + source => 'Item', + value => { + biblionumber => $biblionumber, + biblioitemnumber => $biblioitemnumber, + homebranch => $branch, + holdingbranch => $branch, + itype => $ilevel_itemtype + } } - }); - my $item_without_itemtype = $builder->build({ - source => 'Item', - value => { - biblionumber => $biblionumber, - homebranch => $branch, - holdingbranch => $branch, - itype => undef + ); + my $item_without_itemtype = $builder->build( + { + source => 'Item', + value => { + biblionumber => $biblionumber, + biblioitemnumber => $biblioitemnumber, + homebranch => $branch, + holdingbranch => $branch, + itype => undef + } } - }); + ); my $borrower = GetMember( borrowernumber => $borrowernumber ); AddIssue( $borrower, $item_with_itemtype->{ barcode } ); -- 2.7.4