Lines 31-37
my $builder = t::lib::TestBuilder->new;
Link Here
|
31 |
|
31 |
|
32 |
subtest 'outstanding_debits() tests' => sub { |
32 |
subtest 'outstanding_debits() tests' => sub { |
33 |
|
33 |
|
34 |
plan tests => 5; |
34 |
plan tests => 7; |
35 |
|
35 |
|
36 |
$schema->storage->txn_begin; |
36 |
$schema->storage->txn_begin; |
37 |
|
37 |
|
Lines 55-59
subtest 'outstanding_debits() tests' => sub {
Link Here
|
55 |
$i++; |
55 |
$i++; |
56 |
} |
56 |
} |
57 |
|
57 |
|
|
|
58 |
( $total, $lines ) = Koha::Account->new({ patron_id => 'InvalidBorrowernumber' })->outstanding_debits(); |
59 |
is( $total, 0, "Total if no outstanding debits is 0" ); |
60 |
is( $lines->count, 0, "With no outstanding debits, we get back a Lines object with 0 lines" ); |
61 |
|
62 |
|
58 |
$schema->storage->txn_rollback; |
63 |
$schema->storage->txn_rollback; |
59 |
}; |
64 |
}; |
60 |
- |
|
|