[Koha-bugs] [Bug 21909] Koha::Account::outstanding_* methods should preserve call context
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Nov 30 17:52:43 CET 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21909
Josef Moravec <josef.moravec at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #82751|0 |1
is obsolete| |
Attachment #82752|0 |1
is obsolete| |
Attachment #82753|0 |1
is obsolete| |
--- Comment #8 from Josef Moravec <josef.moravec at gmail.com> ---
Created attachment 82799
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82799&action=edit
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 at ptfs-europe.com>
Signed-off-by: Josef Moravec <josef.moravec at gmail.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list