View | Details | Raw Unified | Return to bug 14570
Collapse All | Expand All

(-)a/t/db_dependent/Circulation/NoIssuesChargeGuarantees.t (-1 / +1 lines)
Lines 80-86 t::lib::Mocks::mock_preference( 'AllowFineOverride', '' ); Link Here
80
my ( $issuingimpossible, $needsconfirmation ) = CanBookBeIssued( $patron, $item->{barcode} );
80
my ( $issuingimpossible, $needsconfirmation ) = CanBookBeIssued( $patron, $item->{barcode} );
81
is( $issuingimpossible->{DEBT_GUARANTEES}, undef, "Patron can check out item" );
81
is( $issuingimpossible->{DEBT_GUARANTEES}, undef, "Patron can check out item" );
82
82
83
my $account = Koha::Account->new( { patron_id => $guarantee->{borrowernumber} } );
83
my $account = Koha::Account->new( { patron_id => $guarantee->id } );
84
$account->add_debit({ amount => 10.00, type => 'lost_item', interface => 'test' });
84
$account->add_debit({ amount => 10.00, type => 'lost_item', interface => 'test' });
85
( $issuingimpossible, $needsconfirmation ) = CanBookBeIssued( $patron, $item->{barcode} );
85
( $issuingimpossible, $needsconfirmation ) = CanBookBeIssued( $patron, $item->{barcode} );
86
is( $issuingimpossible->{DEBT_GUARANTEES} + 0, '10.00' + 0, "Patron cannot check out item due to debt for guarantee" );
86
is( $issuingimpossible->{DEBT_GUARANTEES} + 0, '10.00' + 0, "Patron cannot check out item due to debt for guarantee" );
(-)a/t/db_dependent/Items.t (-2 / +1 lines)
Lines 567-573 subtest 'Koha::Item(s) tests' => sub { Link Here
567
567
568
    # Create a biblio and item for testing
568
    # Create a biblio and item for testing
569
    t::lib::Mocks::mock_preference('marcflavour', 'MARC21');
569
    t::lib::Mocks::mock_preference('marcflavour', 'MARC21');
570
    my $biblio = $builder->build_sample_biblio();
570
    my $biblio = $builder->build_sample_biblio({title => 'Silence in the library'});
571
    my ( $item_bibnum, $item_bibitemnum, $itemnumber ) = AddItem(
571
    my ( $item_bibnum, $item_bibitemnum, $itemnumber ) = AddItem(
572
        {
572
        {
573
            homebranch    => $library1->{branchcode},
573
            homebranch    => $library1->{branchcode},
574
- 

Return to bug 14570