From b7ff9563c58a418d60b0718b8944e3a3da618aac Mon Sep 17 00:00:00 2001 From: Agustin Moyano Date: Tue, 21 May 2019 00:07:47 -0300 Subject: [PATCH] Bug 14570: (follow-up) Fix tests --- t/db_dependent/Circulation/NoIssuesChargeGuarantees.t | 2 +- t/db_dependent/Items.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Circulation/NoIssuesChargeGuarantees.t b/t/db_dependent/Circulation/NoIssuesChargeGuarantees.t index 45f412d816..84868efc88 100644 --- a/t/db_dependent/Circulation/NoIssuesChargeGuarantees.t +++ b/t/db_dependent/Circulation/NoIssuesChargeGuarantees.t @@ -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" ); diff --git a/t/db_dependent/Items.t b/t/db_dependent/Items.t index 8570eb0d25..bbed0436b6 100755 --- a/t/db_dependent/Items.t +++ b/t/db_dependent/Items.t @@ -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}, -- 2.20.1 (Apple Git-117)