From 86060310d4c8642338c262951f740717413e1409 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi 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 --- 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 c5e2dda290..25a2bce9af 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.39.5