Bug 18677: Make the tests pass
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 1 Nov 2018 14:47:16 +0000 (11:47 -0300)
committerJesse Maseto <jesse@bywatersolution.com>
Mon, 3 Dec 2018 19:04:44 +0000 (19:04 +0000)
Signed-off-by: Michal Denar <black23@gmail.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit cd250dae36b8dd03cbfa1b2ab691202a51daa58b)

Signed-off-by: Jesse Maseto <jesse@bywatersolution.com>

t/db_dependent/Accounts.t

index 63324da..c7cfd66 100644 (file)
@@ -639,6 +639,9 @@ subtest "Koha::Account::chargelostitem tests" => sub {
     is( $lostfine->amount, "6.120000", "Lost fine equals replacementcost when pref on and default set");
     is( $procfee->amount, "2.040000",  "Processing fee if processing fee");
     is( $procfee->issue_id, $cli_issue_id_4, "Processing fee issue id is correct" );
+
+    # Cleanup - this must be replaced with a transaction per subtest
+    Koha::Patrons->find($cli_borrowernumber)->checkouts->delete;
 };
 
 subtest "Koha::Account::non_issues_charges tests" => sub {