From 8063bec2a87ecab7e5bd6d58ea7b1add9a5986f3 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Fri, 6 Jul 2018 09:22:29 -0300 Subject: [PATCH] Bug 20980: (QA follow-up) Do not delete existing data on tests fix Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens (cherry picked from commit 8a83f1e1a975368c006c698f94357975333fd2d6) Signed-off-by: Martin Renvoize --- t/db_dependent/Koha/Account.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/db_dependent/Koha/Account.t b/t/db_dependent/Koha/Account.t index d18d7de7a6..f76cfba3a5 100755 --- a/t/db_dependent/Koha/Account.t +++ b/t/db_dependent/Koha/Account.t @@ -83,7 +83,7 @@ subtest 'outstanding_debits() tests' => sub { subtest 'add_credit() tests' => sub { - plan tests => 13; + plan tests => 15; $schema->storage->txn_begin; @@ -151,8 +151,8 @@ subtest 'add_credit() tests' => sub { } ); - is( $schema->resultset('ActionLog')->count(), 2, 'Log was added' ); - is( $schema->resultset('Statistic')->count(), 2, 'No action added to statistics, because of credit type' ); + is( $schema->resultset('ActionLog')->count(), $action_logs + 2, 'Log was added' ); + is( $schema->resultset('Statistic')->count(), $statistics + 2, 'No action added to statistics, because of credit type' ); $schema->storage->txn_rollback; }; -- 2.20.1