Bug 14570: (follow-up) Fix tests
Signed-off-by: Agustin Moyano <agustinmoyano@theke.io> Signed-off-by: Liz Rea <wizzyrea@gmail.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
53b3ebe9d0
commit
89bd7872e3
2 changed files with 2 additions and 2 deletions
|
@ -80,7 +80,7 @@ t::lib::Mocks::mock_preference( 'AllowFineOverride', '' );
|
|||
my ( $issuingimpossible, $needsconfirmation ) = CanBookBeIssued( $patron, $item->{barcode} );
|
||||
is( $issuingimpossible->{DEBT_GUARANTEES}, undef, "Patron can check out item" );
|
||||
|
||||
my $account = Koha::Account->new( { patron_id => $guarantee->{borrowernumber} } );
|
||||
my $account = Koha::Account->new( { patron_id => $guarantee->id } );
|
||||
$account->add_debit({ amount => 10.00, type => 'lost_item', interface => 'test' });
|
||||
( $issuingimpossible, $needsconfirmation ) = CanBookBeIssued( $patron, $item->{barcode} );
|
||||
is( $issuingimpossible->{DEBT_GUARANTEES} + 0, '10.00' + 0, "Patron cannot check out item due to debt for guarantee" );
|
||||
|
|
|
@ -567,7 +567,7 @@ subtest 'Koha::Item(s) tests' => sub {
|
|||
|
||||
# Create a biblio and item for testing
|
||||
t::lib::Mocks::mock_preference('marcflavour', 'MARC21');
|
||||
my $biblio = $builder->build_sample_biblio();
|
||||
my $biblio = $builder->build_sample_biblio({title => 'Silence in the library'});
|
||||
my ( $item_bibnum, $item_bibitemnum, $itemnumber ) = AddItem(
|
||||
{
|
||||
homebranch => $library1->{branchcode},
|
||||
|
|
Loading…
Reference in a new issue