Bug 21909: Unit tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 29 Nov 2018 15:08:03 +0000 (12:08 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 7 Jan 2019 15:00:39 +0000 (15:00 +0000)
commit5cc46f9b9cb196c0d242c8c5a08cb88da7c5bd95
treeeceb10873d71fe04079d0c2a23bdb0622c72bb23
parentc24fded0f973782e1e706cde17fa30aa80219fa7
Bug 21909: Unit tests

This patch introduces regression tests for the behaviour to be
introduced. Both outstanding_credits and outstanding_debits methods
should return a Koha::Account::Lines object in scalar context, and a
list of Koha::Account::Line objects in list context.

To test:
- Apply this patch
- Run
  $ kshell
 k$ prove t/db_dependent/Koha/Account.t
=> FAIL: The current behaviour doesn't match the described

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 85c474e59761e2bb27d9921180752249b5edca9e)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
t/db_dependent/Koha/Account.t