Bugzilla – Attachment 153798 Details for
Bug 30846
"If any unavailable" doesn't consider negative notforloan values as unavailable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30846: (follow-up) Unit tests
Bug-30846-follow-up-Unit-tests.patch (text/plain), 1.15 KB, created by
Hammat wele
on 2023-07-21 14:41:53 UTC
(
hide
)
Description:
Bug 30846: (follow-up) Unit tests
Filename:
MIME Type:
Creator:
Hammat wele
Created:
2023-07-21 14:41:53 UTC
Size:
1.15 KB
patch
obsolete
>From f2a364d2f1d5f3c29d81df32267d1f32e936a6f5 Mon Sep 17 00:00:00 2001 >From: Hammat Wele <hammat.wele@inlibro.com> >Date: Mon, 27 Feb 2023 14:35:15 +0000 >Subject: [PATCH] Bug 30846: (follow-up) Unit tests > >Signed-off-by: Sam Lau <samalau@gmail.com> >--- > t/db_dependent/Reserves.t | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Reserves.t b/t/db_dependent/Reserves.t >index 2d97fa43a1..e1d69ffce0 100755 >--- a/t/db_dependent/Reserves.t >+++ b/t/db_dependent/Reserves.t >@@ -1452,7 +1452,7 @@ $schema->storage->txn_rollback(); > > subtest 'IsAvailableForItemLevelRequest() tests' => sub { > >- plan tests => 2; >+ plan tests => 3; > > $schema->storage->txn_begin; > >@@ -1484,6 +1484,11 @@ subtest 'IsAvailableForItemLevelRequest() tests' => sub { > "Item not available for item-level hold because no effective item type" > ); > >+ my $item_1 = $builder->build_sample_item({ notforloan => -1 }); >+ ok( >+ C4::Reserves::IsAvailableForItemLevelRequest( $item_1, $patron ), >+ "Item not available for item-level hold because no effective item type" >+ ); > $schema->storage->txn_rollback; > }; > >-- >2.34.1
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 30846
:
145586
|
145660
|
147443
|
147444
|
151648
|
151649
|
153797
| 153798 |
154404