Bugzilla – Attachment 114823 Details for
Bug 26367
Warn in HoldsQueue if request itemtype set but request is not item specific
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26367: Unit test
Bug-26367-Unit-test.patch (text/plain), 2.12 KB, created by
Katrin Fischer
on 2021-01-04 22:30:17 UTC
(
hide
)
Description:
Bug 26367: Unit test
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2021-01-04 22:30:17 UTC
Size:
2.12 KB
patch
obsolete
>From 38a2811900a546ca86796f7054ad5bd1c9864676 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 3 Sep 2020 12:06:51 +0000 >Subject: [PATCH] Bug 26367: Unit test > >This warn only appears when: > The borrower and item branches match > AND > The hold fulfillment policy is any or the pickupbranch matches the items branch specified by hold_fulfillment_policy > AND > The request has an itemtype set > >To trigger we simply add some itemtype to existing hold requests in the test > >To test: >1 - prove -v t/db_dependent/HoldsQueue.t > >Signed-off-by: David Nind <david@davidnind.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > t/db_dependent/HoldsQueue.t | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > >diff --git a/t/db_dependent/HoldsQueue.t b/t/db_dependent/HoldsQueue.t >index 06047c647f..8c265f16b0 100755 >--- a/t/db_dependent/HoldsQueue.t >+++ b/t/db_dependent/HoldsQueue.t >@@ -1413,7 +1413,8 @@ subtest 'Excludes from local holds priority' => sub { > branchcode => $other_patron->branchcode, > borrowernumber => $other_patron->borrowernumber, > biblionumber => $item1->biblionumber, >- priority => 1 >+ priority => 1, >+ itemtype => $item1->effective_itemtype > } > ); > >@@ -1422,7 +1423,8 @@ subtest 'Excludes from local holds priority' => sub { > branchcode => $local_patron_excluded->branchcode, > borrowernumber => $local_patron_excluded->borrowernumber, > biblionumber => $item1->biblionumber, >- priority => 2 >+ priority => 2, >+ itemtype => $item1->effective_itemtype > } > ); > >@@ -1431,7 +1433,8 @@ subtest 'Excludes from local holds priority' => sub { > branchcode => $local_patron_not_excluded->branchcode, > borrowernumber => $local_patron_not_excluded->borrowernumber, > biblionumber => $item1->biblionumber, >- priority => 3 >+ priority => 3, >+ itemtype => $item1->effective_itemtype > } > ); > >-- >2.11.0
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 26367
:
109620
|
109621
|
113031
|
113032
| 114823 |
114824