Bugzilla – Attachment 84123 Details for
Bug 21691
Koha::Account->non_issues_charges has no tests
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21691: Created test for Koha::Account->non_issues_charges
Bug-21691-Created-test-for-KohaAccount-nonissuesch.patch (text/plain), 1.28 KB, created by
Jasmine Amohia
on 2019-01-17 04:06:20 UTC
(
hide
)
Description:
Bug 21691: Created test for Koha::Account->non_issues_charges
Filename:
MIME Type:
Creator:
Jasmine Amohia
Created:
2019-01-17 04:06:20 UTC
Size:
1.28 KB
patch
obsolete
>From 880ec87fa06079d285f80a3c0bcfda7f087fb345 Mon Sep 17 00:00:00 2001 >From: Jasmine Amohia <jasmineamohia.student@wegc.school.nz> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 21691
:
84123
|
84135