Bugzilla – Attachment 76437 Details for
Bug 20946
Cannot pay fines for patrons with credits
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20946: Additional unit tests for 0 lines edge case
Bug-20946-Additional-unit-tests-for-0-lines-edge-c.patch (text/plain), 1.11 KB, created by
Kyle M Hall (khall)
on 2018-06-26 13:21:18 UTC
(
hide
)
Description:
Bug 20946: Additional unit tests for 0 lines edge case
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2018-06-26 13:21:18 UTC
Size:
1.11 KB
patch
obsolete
>From 2346ba293e1fcd67451e779696e6a9121630ee67 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Tue, 26 Jun 2018 13:20:26 +0000 >Subject: [PATCH] Bug 20946: Additional unit tests for 0 lines edge case > >--- > t/db_dependent/Koha/Account.t | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha/Account.t b/t/db_dependent/Koha/Account.t >index bf0e0b677d..5d15f4aa61 100755 >--- a/t/db_dependent/Koha/Account.t >+++ b/t/db_dependent/Koha/Account.t >@@ -31,7 +31,7 @@ my $builder = t::lib::TestBuilder->new; > > subtest 'outstanding_debits() tests' => sub { > >- plan tests => 5; >+ plan tests => 7; > > $schema->storage->txn_begin; > >@@ -55,5 +55,10 @@ subtest 'outstanding_debits() tests' => sub { > $i++; > } > >+ ( $total, $lines ) = Koha::Account->new({ patron_id => 'InvalidBorrowernumber' })->outstanding_debits(); >+ is( $total, 0, "Total if no outstanding debits is 0" ); >+ is( $lines->count, 0, "With no outstanding debits, we get back a Lines object with 0 lines" ); >+ >+ > $schema->storage->txn_rollback; > }; >-- >2.15.2 (Apple Git-101.1)
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 20946
:
76116
|
76317
|
76318
|
76394
|
76395
|
76432
|
76433
|
76434
|
76435
| 76437 |
76519
|
76521
|
76522
|
76632