Bugzilla – Attachment 43118 Details for
Bug 5144
Duplicate holds allowed if patron clicks back button after placing hold
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 5144 [QA Followup] - Add unit test
Bug-5144-QA-Followup---Add-unit-test.patch (text/plain), 1.24 KB, created by
Kyle M Hall (khall)
on 2015-10-05 11:44:43 UTC
(
hide
)
Description:
Bug 5144 [QA Followup] - Add unit test
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2015-10-05 11:44:43 UTC
Size:
1.24 KB
patch
obsolete
>From bb2247fd338e04b71a1dac2c05516a4f0d361b52 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Mon, 5 Oct 2015 07:44:16 -0400 >Subject: [PATCH] Bug 5144 [QA Followup] - Add unit test > >--- > t/db_dependent/Reserves.t | 8 +++++++- > 1 files changed, 7 insertions(+), 1 deletions(-) > >diff --git a/t/db_dependent/Reserves.t b/t/db_dependent/Reserves.t >index ea47f09..ec0876f 100755 >--- a/t/db_dependent/Reserves.t >+++ b/t/db_dependent/Reserves.t >@@ -17,7 +17,7 @@ > > use Modern::Perl; > >-use Test::More tests => 71; >+use Test::More tests => 72; > > use MARC::Record; > use DateTime::Duration; >@@ -443,6 +443,12 @@ $p = C4::Reserves::CalculatePriority($bibnum, $resdate); > is($p, 3, 'CalculatePriority should now return priority 3'); > # End of tests for bug 8918 > >+# Test for bug 5144 >+my $reserve_id = AddReserve('CPL', $requesters{'CPL3'}, $bibnum, >+ $bibitems, $p, output_pref($resdate), $expdate, $notes, >+ $title, $checkitem, $found); >+is( $reserve_id, undef, 'Attempt to add a second reserve on a given record for the same patron fails.' ); >+ > # Tests for cancel reserves by users from OPAC. > $dbh->do('DELETE FROM reserves', undef, ($bibnum)); > AddReserve('CPL', $requesters{'CPL'}, $item_bibnum, >-- >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 5144
:
28657
|
28658
|
28659
|
34983
|
34984
|
34985
|
34986
|
34987
|
34988
|
35090
|
35091
|
35092
|
35093
|
35451
|
40823
|
40824
|
42530
|
42792
|
42848
|
43118
|
43119
|
43120
|
43121
|
43122
|
43125
|
43126
|
43164
|
43165
|
43166
|
43167