]> git.koha-community.org Git - koha.git/commit
Bug 21720: Update Tests
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 30 Nov 2018 13:30:24 +0000 (13:30 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 4 Mar 2019 19:15:41 +0000 (19:15 +0000)
commitf40a75876ec681b7a102ba190e63ecda3e2bc43e
tree6d530619122dda2fde5ea1ea1805acce14a41566
parentb104046d89ee6457946b998d9221b1d3771b5d5c
Bug 21720: Update Tests

AddIssuing charge is always called in void context, but the tests
checked that the return value was a Koha::Account::Offset and we now
return a Koha::Account::Line.

This patch changes the test to accept a Koha::Account::Line as returned,
adds a test to ensure a Koha::Account::Offset is also created and
corrects the logic that tests that only one accountline is added.

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
t/db_dependent/Circulation/issue.t