Bugzilla – Attachment 173889 Details for
Bug 37392
Edit item permission by library group is broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37392: Fix API helpers testsa
Bug-37392-Fix-API-helpers-testsa.patch (text/plain), 1.15 KB, created by
Tomás Cohen Arazi (tcohen)
on 2024-11-01 19:35:08 UTC
(
hide
)
Description:
Bug 37392: Fix API helpers testsa
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2024-11-01 19:35:08 UTC
Size:
1.15 KB
patch
obsolete
>From be11149ac2678f279480e16cab8b55559dca17de Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 1 Nov 2024 16:25:58 -0300 >Subject: [PATCH] Bug 37392: Fix API helpers testsa > >This patch acknowledges the fact this patchset changed the called method >`libraries_where_can_see_patrons` for `libraries_where_can_see_things`. >And as such the mock was not working. > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > t/db_dependent/Koha/REST/Plugin/Objects.t | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha/REST/Plugin/Objects.t b/t/db_dependent/Koha/REST/Plugin/Objects.t >index c5e2dda2903..25a2bce9afe 100755 >--- a/t/db_dependent/Koha/REST/Plugin/Objects.t >+++ b/t/db_dependent/Koha/REST/Plugin/Objects.t >@@ -650,7 +650,7 @@ subtest 'objects.search helper, search_limited() tests' => sub { > my $t = Test::Mojo->new; > > my $mocked_patron = Test::MockModule->new('Koha::Patron'); >- $mocked_patron->mock( 'libraries_where_can_see_patrons', sub >+ $mocked_patron->mock( 'libraries_where_can_see_things', sub > { > return @libraries_where_can_see_patrons; > } >-- >2.47.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 37392
:
169433
|
169434
|
169515
|
169516
|
169517
|
170392
|
170393
|
170394
|
172698
|
172699
|
172700
|
173654
|
173655
|
173656
|
173657
|
173699
|
173700
|
173701
|
173702
|
173703
|
173871
| 173889 |
175413