From 849bc92e2f9ade448ba877ccd20f64d0c9def0ec Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 30 May 2024 06:55:32 -0400 Subject: [PATCH] Bug 36988: Update unit tests --- t/db_dependent/api/v1/patrons.t | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/api/v1/patrons.t b/t/db_dependent/api/v1/patrons.t index a3247d7de93..17536174818 100755 --- a/t/db_dependent/api/v1/patrons.t +++ b/t/db_dependent/api/v1/patrons.t @@ -715,9 +715,22 @@ subtest 'update() tests' => sub { my $authorized_patron = $builder->build_object( { class => 'Koha::Patrons', - value => { flags => 1 } + value => { flags => 2 ** 2 } # catalog only, no additional permissions } ); + + # Ensure our librarian can see users from all branches (once list_borrowers is added) + $builder->build( + { + source => 'UserPermission', + value => { + borrowernumber => $authorized_patron->borrowernumber, + module_bit => 4, + code => 'edit_borrowers', + }, + } + ); + my $password = 'thePassword123'; $authorized_patron->set_password( { password => $password, skip_validation => 1 } ); -- 2.30.2