Bugzilla – Attachment 20006 Details for
Bug 7560
SIP Self Checkout Ignoring Fines Thresholds for Not Being able to Check Out Books
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7560 - SIP Self Checkout Ignoring Fines Thresholds for Not Being able to Check Out Books - Unit Test
Bug-7560---SIP-Self-Checkout-Ignoring-Fines-Thresh.patch (text/plain), 1.57 KB, created by
Kyle M Hall (khall)
on 2013-07-31 14:27:16 UTC
(
hide
)
Description:
Bug 7560 - SIP Self Checkout Ignoring Fines Thresholds for Not Being able to Check Out Books - Unit Test
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2013-07-31 14:27:16 UTC
Size:
1.57 KB
patch
obsolete
>From 045fe0cd8ec8af93a7cc439dc72aa606341310b2 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 31 Jul 2013 10:26:35 -0400 >Subject: [PATCH] Bug 7560 - SIP Self Checkout Ignoring Fines Thresholds for Not Being able to Check Out Books - Unit Test > >--- > t/db_dependent/Accounts.t | 34 +++++++++++++++++++++++++++++++--- > 1 files changed, 31 insertions(+), 3 deletions(-) > >diff --git a/t/db_dependent/Accounts.t b/t/db_dependent/Accounts.t >index 1c2dd5a..e7b21d3 100644 >--- a/t/db_dependent/Accounts.t >+++ b/t/db_dependent/Accounts.t >@@ -3,14 +3,42 @@ > # This Koha test module is a stub! > # Add more tests here!!! > >-use strict; >-use warnings; >+use Modern::Perl; > >-use Test::More tests => 1; >+use Test::More tests => 2; > > BEGIN { > use_ok('C4::Accounts'); > } > > >+my $dbh = C4::Context->dbh; > >+# Start transaction >+$dbh->{AutoCommit} = 0; >+$dbh->{RaiseError} = 1; >+ >+$dbh->do(q{ >+INSERT INTO accountlines ( >+ borrowernumber , >+ accountno , >+ itemnumber , >+ date , >+ amount , >+ description , >+ dispute , >+ accounttype , >+ amountoutstanding , >+ lastincrement , >+ timestamp , >+ notify_id , >+ notify_level , >+ note , >+ manager_id >+ ) >+VALUES >+ ('1', '32766', NULL , '2013-07-31', '1.000000', NULL , NULL , NULL , '1.000000', NULL , '2013-07-31 10:21:01', '0', '0', NULL , NULL), >+ ('1', '32767', NULL , '2013-07-31', '2.000000', NULL , NULL , NULL , '2.000000', NULL , '2013-07-31 10:21:01', '0', '0', NULL , NULL) >+}); >+ >+ok( GetTotalFines( 1 ) == 3, "GetTotalFines functions correctly" ); >-- >1.7.2.5
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 7560
:
7772
|
11475
|
16044
|
16045
|
16047
|
16048
|
18194
|
18195
|
18196
|
18198
|
18199
|
18200
|
20004
|
20005
|
20006
|
42595
|
42596
|
42597
|
43587
|
43777
|
50398