]> git.koha-community.org Git - koha.git/commit
Bug 21969: Regression tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 6 Dec 2018 18:37:37 +0000 (15:37 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 12 Dec 2018 11:10:51 +0000 (11:10 +0000)
commit7308b29f22dc453e19faca61509a1e511595e005
tree7e2d6e45942e58d44b5dbeb5562da1bc1b0f4cbe
parentf97bd325a8ef617caedbf894a806ac5319d18836
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>
(cherry picked from commit ce160066a2b06742e348011324620c8e58b26f40)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
t/db_dependent/Koha/Account.t