Bugzilla – Attachment 156287 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.10 KB, created by
Marcel de Rooy
on 2023-09-27 12:55:39 UTC
(
hide
)
Description:
Bug 34932: Patron.t - Pass borrowernumber of manager to userenv
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2023-09-27 12:55:39 UTC
Size:
1.10 KB
patch
obsolete
>From f7b2f97859a4d2deddc3c01e19e7f6742783f8d1 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 >Content-Type: text/plain; charset=utf-8 > >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> >--- > 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 85a6ae6198..c0b00d733f 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.30.2
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