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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 5 Dec 2018 07:59:24 +0000 (08:59 +0100)
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>
(cherry picked from commit 6adfbd33f12e3813d19a208ec0bdb251626207a6)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

t/db_dependent/Accounts.t

index b72ca5d..0562642 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 {