Bug 21969: Regression tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 6 Dec 2018 18:37:37 +0000 (15:37 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Tue, 11 Dec 2018 20:47:52 +0000 (20:47 +0000)
commitce160066a2b06742e348011324620c8e58b26f40
tree369eff9f2f6d041b15dd51679822356038e25d3d
parent30874dea519d379134174cf9c5fd5051588a8629
Bug 21969: Regression tests

This patch introduces regression tests for Koha::Account::outstanding_*
methods so they don't pick wrong lines when amountoutstanding matches
what we are looking for (i.e. negative for credits and positive for
debits).

To test:
- Apply this patch
- Run:
  $ kshell
 k$ prove t/db_dependent/Koha/Account.t
=> FAIL: Tests fail because pathological account lines are wrongly
picked.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
t/db_dependent/Koha/Account.t