Bug 19943: Fix Borrower_PrevCheckout.t - create the biblioitem entry

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2018-03-23 13:22:35 -03:00
parent ac21d687a1
commit 13ae64db80

View file

@ -381,12 +381,14 @@ test_it($cpvPmappings, "PostReturn");
my $CBBI_patron = $builder->build({source => 'Borrower'}); my $CBBI_patron = $builder->build({source => 'Borrower'});
$patron = Koha::Patrons->find( $CBBI_patron->{borrowernumber} ); $patron = Koha::Patrons->find( $CBBI_patron->{borrowernumber} );
# Our Items # Our Items
my $new_item = $builder->build({ my $new_item = $builder->build({
source => 'Item', source => 'Item',
value => { value => {
notforloan => 0, notforloan => 0,
withdrawn => 0, withdrawn => 0,
itemlost => 0, itemlost => 0,
biblionumber => $builder->build( { source => 'Biblioitem' } )->{biblionumber},
}, },
}); });
my $prev_item = $builder->build({ my $prev_item = $builder->build({
@ -395,6 +397,7 @@ my $prev_item = $builder->build({
notforloan => 0, notforloan => 0,
withdrawn => 0, withdrawn => 0,
itemlost => 0, itemlost => 0,
biblionumber => $builder->build( { source => 'Biblioitem' } )->{biblionumber},
}, },
}); });
# Second is Checked Out # Second is Checked Out