]> git.koha-community.org Git - koha.git/commit
Bug 27995: Unit tests
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 19 Mar 2021 09:45:45 +0000 (09:45 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 27 Apr 2021 14:23:49 +0000 (16:23 +0200)
commit479c8d997e3c73415861b5d15b6bf207d6c59ca1
tree5a9096ad4d773fe879d53817ac18d33ed4179bb3
parent1937f1b1d10aa6ddf8bea8b6da05ae4361149fe0
Bug 27995: Unit tests

This patch updates the unit tests for Koha::Account::Line->apply to
reflect the change we wish to make to the return value.

Instead of returning the scalar amount of available credit left on the
credit line after calling apply, we want to return the full, updated,
Koha::Account::Line object including Koha::Object::Messages for the
result of renewals that may have taken place.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/Koha/Account/Line.t