]> git.koha-community.org Git - koha.git/commit
Bug 21909: Unit tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 29 Nov 2018 15:08:03 +0000 (12:08 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 2 Jan 2019 20:20:30 +0000 (20:20 +0000)
commit85c474e59761e2bb27d9921180752249b5edca9e
tree69a89012d60d0c2bf88fb446408dd879bcf350fc
parent8748d801099e1c4e4f8f845a69d1cdba4a21e7aa
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>
t/db_dependent/Koha/Account.t