Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
subtest 'outstanding_debits() tests' => sub {
- plan tests => 5;
+ plan tests => 7;
$schema->storage->txn_begin;
$i++;
}
+ ( $total, $lines ) = Koha::Account->new({ patron_id => 'InvalidBorrowernumber' })->outstanding_debits();
+ is( $total, 0, "Total if no outstanding debits is 0" );
+ is( $lines->count, 0, "With no outstanding debits, we get back a Lines object with 0 lines" );
+
+
$schema->storage->txn_rollback;
};