Bugzilla – Attachment 125956 Details for
Bug 3142
Standardize how OPAC and staff determine requestability
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 3142: Add tests for item-level_itypes=0
Bug-3142-Add-tests-for-item-levelitypes0.patch (text/plain), 1.25 KB, created by
Jonathan Druart
on 2021-10-08 13:06:03 UTC
(
hide
)
Description:
Bug 3142: Add tests for item-level_itypes=0
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-10-08 13:06:03 UTC
Size:
1.25 KB
patch
obsolete
>From 2bd26b372574d853a717fd89ec6f2f76a3f469c7 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 8 Oct 2021 15:05:39 +0200 >Subject: [PATCH] Bug 3142: Add tests for item-level_itypes=0 > >--- > t/db_dependent/Koha/Items.t | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha/Items.t b/t/db_dependent/Koha/Items.t >index 9a951d7e4f1..dc258b45106 100755 >--- a/t/db_dependent/Koha/Items.t >+++ b/t/db_dependent/Koha/Items.t >@@ -1510,7 +1510,7 @@ subtest 'can_be_transferred' => sub { > }; > > subtest 'filter_by_for_hold' => sub { >- plan tests => 11; >+ plan tests => 12; > > my $biblio = $builder->build_sample_biblio; > is( $biblio->items->filter_by_for_hold->count, 0, 'no item yet' ); >@@ -1567,6 +1567,12 @@ subtest 'filter_by_for_hold' => sub { > $itemtype->notforloan(1)->store; > is( $biblio->items->filter_by_for_hold->count, 6, '6 items for hold - notforloan' ); > >+ t::lib::Mocks::mock_preference('item-level_itypes', 0); >+ $biblio->biblioitem->itemtype($not_holdable_itemtype)->store; >+ is( $biblio->items->filter_by_for_hold->count, 0, '0 item-level_itypes=0' ); >+ >+ t::lib::Mocks::mock_preference('item-level_itypes', 1); >+ > $biblio->delete; > }; > >-- >2.25.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 3142
:
122284
|
122285
|
122286
|
122287
|
122314
|
122315
|
122316
|
122317
|
125727
|
125728
|
125729
|
125730
|
125732
|
125733
|
125734
|
125942
|
125943
|
125944
|
125945
|
125946
|
125947
|
125948
|
125949
|
125950
|
125951
|
125956
|
125967
|
125968
|
125969
|
125970
|
125971
|
125972
|
125973
|
125974
|
125975
|
125976
|
125977