Bugzilla – Attachment 25166 Details for
Bug 7413
Allow OPAC renewal x days before due date
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7413: Unit Test
Bug-7413-Unit-Test.patch (text/plain), 3.42 KB, created by
Holger Meißner
on 2014-02-10 09:00:25 UTC
(
hide
)
Description:
Bug 7413: Unit Test
Filename:
MIME Type:
Creator:
Holger Meißner
Created:
2014-02-10 09:00:25 UTC
Size:
3.42 KB
patch
obsolete
>From 9f2bdbf57119380195a59716c3234039706f6896 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Holger=20Mei=C3=9Fner?= <h.meissner.82@web.de> >Date: Mon, 10 Feb 2014 09:46:11 +0100 >Subject: [PATCH] Bug 7413: Unit Test >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >This patch makes the new parameter norenewalbefore known to >Circulation_Issuingrule.t > >To test: >1) prove t/db_dependent/Circulation_Issuingrule.t >2) Notice that the test fails with: > $got->{nornewalbefore} = undef > $expected->{norenewalbefore} = Does not exist >3) Apply patch. >4) Run test again and it should pass. > >Sponsored-by: Hochschule für Gesundheit (hsg), Germany >--- > t/db_dependent/Circulation_Issuingrule.t | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Circulation_Issuingrule.t b/t/db_dependent/Circulation_Issuingrule.t >index fc567a8..7ab439b 100644 >--- a/t/db_dependent/Circulation_Issuingrule.t >+++ b/t/db_dependent/Circulation_Issuingrule.t >@@ -116,6 +116,7 @@ my $sampleissuingrule1 = { > finedays => 0, > lengthunit => 'Null', > renewalperiod => 5, >+ norenewalbefore => 6, > issuelength => 5, > chargeperiod => 0, > rentaldiscount => '2.000000', >@@ -137,6 +138,7 @@ my $sampleissuingrule2 = { > maxissueqty => 2, > renewalsallowed => 'Null', > renewalperiod => 2, >+ norenewalbefore => 7, > reservesallowed => 'Null', > issuelength => 2, > lengthunit => 'Null', >@@ -160,6 +162,7 @@ my $sampleissuingrule3 = { > maxissueqty => 3, > renewalsallowed => 'Null', > renewalperiod => 3, >+ norenewalbefore => 8, > reservesallowed => 'Null', > issuelength => 3, > lengthunit => 'Null', >@@ -183,6 +186,7 @@ $query = 'INSERT INTO issuingrules ( > maxissueqty, > renewalsallowed, > renewalperiod, >+ norenewalbefore, > reservesallowed, > issuelength, > lengthunit, >@@ -198,7 +202,7 @@ $query = 'INSERT INTO issuingrules ( > reservecharge, > chargename, > restrictedtype >- ) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)'; >+ ) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)'; > my $sth = $dbh->prepare($query); > $sth->execute( > $sampleissuingrule1->{branchcode}, >@@ -207,6 +211,7 @@ $sth->execute( > $sampleissuingrule1->{maxissueqty}, > $sampleissuingrule1->{renewalsallowed}, > $sampleissuingrule1->{renewalperiod}, >+ $sampleissuingrule1->{norenewalbefore}, > $sampleissuingrule1->{reservesallowed}, > $sampleissuingrule1->{issuelength}, > $sampleissuingrule1->{lengthunit}, >@@ -230,6 +235,7 @@ $sth->execute( > $sampleissuingrule2->{maxissueqty}, > $sampleissuingrule2->{renewalsallowed}, > $sampleissuingrule2->{renewalperiod}, >+ $sampleissuingrule2->{norenewalbefore}, > $sampleissuingrule2->{reservesallowed}, > $sampleissuingrule2->{issuelength}, > $sampleissuingrule2->{lengthunit}, >@@ -253,6 +259,7 @@ $sth->execute( > $sampleissuingrule3->{maxissueqty}, > $sampleissuingrule3->{renewalsallowed}, > $sampleissuingrule3->{renewalperiod}, >+ $sampleissuingrule3->{norenewalbefore}, > $sampleissuingrule3->{reservesallowed}, > $sampleissuingrule3->{issuelength}, > $sampleissuingrule3->{lengthunit}, >-- >1.7.10.4
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 7413
:
24685
|
24686
|
24687
|
24688
|
24689
|
24926
|
24927
|
24928
|
24929
|
24930
|
25166
|
25247
|
25248
|
25249
|
25250
|
25251
|
25252
|
25855
|
25856
|
25857
|
25858
|
25859
|
25860
|
26726
|
26727
|
26728
|
26729
|
26730
|
26731
|
26732
|
26733