Bugzilla – Attachment 156328 Details for
Bug 34932
A missing manager (51) failed my patron test
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34932: Patron.t - Pass borrowernumber of manager to userenv
Bug-34932-Patront---Pass-borrowernumber-of-manager.patch (text/plain), 1.14 KB, created by
Jonathan Druart
on 2023-09-28 13:26:17 UTC
(
hide
)
Description:
Bug 34932: Patron.t - Pass borrowernumber of manager to userenv
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-09-28 13:26:17 UTC
Size:
1.14 KB
patch
obsolete
>From 764e593c850f2bc5259b993d56879c25dfa143fe Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Wed, 27 Sep 2023 14:48:27 +0200 >Subject: [PATCH] Bug 34932: Patron.t - Pass borrowernumber of manager to > userenv > >Test plan: >Make sure that you do not have borrowr 51. >Run t/db_dependent/Koha/Patron.t. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > t/db_dependent/Koha/Patron.t | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/t/db_dependent/Koha/Patron.t b/t/db_dependent/Koha/Patron.t >index 85a6ae61984..c0b00d733ff 100755 >--- a/t/db_dependent/Koha/Patron.t >+++ b/t/db_dependent/Koha/Patron.t >@@ -1166,6 +1166,8 @@ subtest 'safe_to_delete() tests' => sub { > is( $message->type, 'error', 'Type is error' ); > is( $message->message, 'has_debt', 'Cannot delete, has debt' ); > # cleanup >+ my $manager = $builder->build_object( { class => 'Koha::Patrons' } ); >+ t::lib::Mocks::mock_userenv( { borrowernumber => $manager->id } ); > $patron->account->pay({ amount => 10, debits => [ $debit ] }); > > ## Happy case :-D >-- >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 34932
:
156287
| 156328