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

(-)a/t/db_dependent/Accounts.t (-2 / +1 lines)
Lines 205-211 subtest "Koha::Account::pay tests" => sub { Link Here
205
    # We attempt to make a -$30 payment (a NEGATIVE payment)
205
    # We attempt to make a -$30 payment (a NEGATIVE payment)
206
    $data = '-30.00';
206
    $data = '-30.00';
207
    $payment_note = '-$30.00 payment note';
207
    $payment_note = '-$30.00 payment note';
208
    throws_ok { $account->pay( { amount => $data, note => $payment_note } ) } qr//, 'Croaked on call to pay with negative amount';
208
    throws_ok { $account->pay( { amount => $data, note => $payment_note } ) } 'Koha::Exceptions::Account::AmountNotPositive', 'Croaked on call to pay with negative amount';
209
209
210
    #We make a $150 payment ( > 1stLine )
210
    #We make a $150 payment ( > 1stLine )
211
    $data = '150.00';
211
    $data = '150.00';
212
- 

Return to bug 27636