]> git.koha-community.org Git - koha.git/commit
Bug 19066: Add tests for Koha::Account->pay
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 8 Nov 2018 14:15:25 +0000 (11:15 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 3 Jan 2019 18:58:42 +0000 (18:58 +0000)
commitfaafdb53b7c3614420bae1df1b023ad4cb64db2e
tree257f4c0e3867eafc19125a2a23ba66379c6ffac6
parent48dab3c1261870bf23c01eda3b57aa76a9814250
Bug 19066: Add tests for Koha::Account->pay

This patch adds tests for Koha::Account->pay, to make sure the
library_id param is used to set the branchcode attribute. The use of
userenv to set branchcode if library_id not passed is removed.
Responsability is left to the callers to pass library_id.

To test:
- Run:
  $ kshell
 k$ prove t/db_dependent/Koha/Account.t
=> SUCCESS: Tests pass!

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Account.pm
t/db_dependent/Accounts.t
t/db_dependent/Koha/Account.t