@@ -, +, @@ DecreaseLoanHighHolds.t - Run: $ prove t/db_dependent/DecreaseLoanHighHolds.t - Apply the patch - Run: $ prove t/db_dependent/DecreaseLoanHighHolds.t - Sign off :-D --- t/db_dependent/DecreaseLoanHighHolds.t | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) --- a/t/db_dependent/DecreaseLoanHighHolds.t +++ a/t/db_dependent/DecreaseLoanHighHolds.t @@ -41,8 +41,9 @@ $dbh->do('DELETE FROM issuingrules'); $dbh->do('DELETE FROM borrowers'); $dbh->do('DELETE FROM items'); -my $library = $builder->build({source => 'Branch'}); -my $category = $builder->build({source => 'Category'}); +my $library = $builder->build( { source => 'Branch' } ); +my $category = $builder->build( { source => 'Category' } ); +my $itemtype = $builder->build( { source => 'Itemtype' } )->{itemtype}; # Set userenv C4::Context->_new_userenv('xxx'); @@ -67,7 +68,8 @@ for my $i ( 1 .. 10 ) { { biblionumber => $biblio->id(), biblioitemnumber => $biblioitem->id(), - barcode => $i + barcode => $i, + itype => $itemtype } )->store(); push( @items, $item ); --