Bugzilla – Attachment 28149 Details for
Bug 11629
Add ability to update not for loan status on checkin
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11629 [QA Followup] - Unit Tests
Bug-11629-QA-Followup---Unit-Tests.patch (text/plain), 2.18 KB, created by
Kyle M Hall (khall)
on 2014-05-09 16:57:54 UTC
(
hide
)
Description:
Bug 11629 [QA Followup] - Unit Tests
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2014-05-09 16:57:54 UTC
Size:
2.18 KB
patch
obsolete
>From 2824946a2a95f4a12a47cf91fc91c1e10fcc5627 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Mon, 24 Feb 2014 08:39:16 -0500 >Subject: [PATCH] Bug 11629 [QA Followup] - Unit Tests > >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >--- > t/db_dependent/Circulation_issue.t | 28 +++++++++++++++++++++++++++- > 1 files changed, 27 insertions(+), 1 deletions(-) > >diff --git a/t/db_dependent/Circulation_issue.t b/t/db_dependent/Circulation_issue.t >index be3a775..0e83794 100644 >--- a/t/db_dependent/Circulation_issue.t >+++ b/t/db_dependent/Circulation_issue.t >@@ -10,7 +10,7 @@ use C4::Circulation; > use C4::Items; > use C4::Context; > >-use Test::More tests => 27; >+use Test::More tests => 30; > > BEGIN { > use_ok('C4::Circulation'); >@@ -342,5 +342,31 @@ AddReturn('barcode_1', undef, undef, undef, '2014-04-01 23:42'); > $return = $dbh->selectrow_hashref("SELECT * FROM old_issues LIMIT 1" ); > ok( $return->{returndate} eq '2014-04-01 23:42:00', "Item returned with a return date of '2014-04-01 23:42' has that return date" ); > >+my ($biblionumber, $biblioitemnumber, $itemnumber) = C4::Items::AddItem( >+ { >+ barcode => 'barcode_3', >+ itemcallnumber => 'callnumber3', >+ homebranch => $samplebranch1->{branchcode}, >+ holdingbranch => $samplebranch1->{branchcode}, >+ notforloan => 1, >+ }, >+ $biblionumber >+); >+ >+C4::Context->set_preference( 'UpdateNotForLoanStatusOnCheckin', q{} ); >+AddReturn( 'barcode_3', $samplebranch1->{branchcode} ); >+my $item = GetItem( $itemnumber ); >+ok( $item->{notforloan} eq 1, 'UpdateNotForLoanStatusOnCheckin does not modify value when not enabled' ); >+ >+C4::Context->set_preference( 'UpdateNotForLoanStatusOnCheckin', '1: 9' ); >+AddReturn( 'barcode_3', $samplebranch1->{branchcode} ); >+$item = GetItem( $itemnumber ); >+ok( $item->{notforloan} eq 9, q{UpdateNotForLoanStatusOnCheckin updates notforloan value from 1 to 9 with setting "1: 9"} ); >+ >+AddReturn( 'barcode_3', $samplebranch1->{branchcode} ); >+$item = GetItem( $itemnumber ); >+ok( $item->{notforloan} eq 9, q{UpdateNotForLoanStatusOnCheckin does not update notforloan value from 9 with setting "1: 9"} ); >+ >+ > #End transaction > $dbh->rollback; >-- >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 11629
:
24848
|
24849
|
24962
|
24963
|
24964
|
25229
|
25580
|
25581
|
25582
|
25583
|
27233
|
27244
|
27245
|
27246
|
27247
|
27248
|
27249
|
27250
|
27251
|
27252
|
28147
|
28148
| 28149 |
28150
|
28151
|
28152