From 880ec87fa06079d285f80a3c0bcfda7f087fb345 Mon Sep 17 00:00:00 2001 From: Jasmine Amohia Date: Thu, 17 Jan 2019 04:04:04 +0000 Subject: [PATCH] Bug 21691: Created test for Koha::Account->non_issues_charges Test Plan: 1) Run test for t/db_dependent/Koha/Account.t and confirm that all tests are successful --- t/db_dependent/Koha/Account.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Koha/Account.t b/t/db_dependent/Koha/Account.t index 9fbef7c124..6ebd9fe832 100755 --- a/t/db_dependent/Koha/Account.t +++ b/t/db_dependent/Koha/Account.t @@ -34,7 +34,7 @@ my $builder = t::lib::TestBuilder->new; subtest 'outstanding_debits() tests' => sub { - plan tests => 22; + plan tests => 23; $schema->storage->txn_begin; @@ -91,6 +91,9 @@ subtest 'outstanding_debits() tests' => sub { $lines = $account_4->outstanding_debits(); is( $lines->count, 0, 'No credits are confused with debits because of the amountoutstanding value' ); + Koha::Account::Line->new({ borrowernumber => $patron_4->id, amount => -3, amountoutstanding => 3, accounttype => "F" })->store(); + is ( $account_4->non_issues_charges, 3, 'Non issues charges are valid'); + $schema->storage->txn_rollback; }; -- 2.11.0