From 40ed196711a8518f5853fc8e69c81f12460784e6 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 --- 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 8a92c24fc3..e07afe44e2 100755 --- a/t/db_dependent/Koha/Account.t +++ b/t/db_dependent/Koha/Account.t @@ -85,7 +85,7 @@ subtest 'outstanding_debits() tests' => sub { subtest 'add_credit() tests' => sub { - plan tests => 13; + plan tests => 15; $schema->storage->txn_begin; @@ -153,8 +153,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.18.0