Bug 17573: Remove itemtype-related warnings from DecreaseLoanHighHolds.t

To test:
- Run:
  $ prove t/db_dependent/DecreaseLoanHighHolds.t
=> FAIL: Lots of warnings
- Apply the patch
- Run:
  $ prove t/db_dependent/DecreaseLoanHighHolds.t
=> SUCCESS: All green and no warnings.
- Sign off :-D

Sponsored-by: ByWater Solutions

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Mason James <mtj@kohaaloha.com>
This commit is contained in:
Tomas Cohen Arazi 2016-11-07 15:24:34 -03:00 committed by Mason James
parent b0494f85e6
commit 0b307dc70c
1 changed files with 5 additions and 3 deletions

View File

@ -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 );