Bugzilla – Attachment 111372 Details for
Bug 26515
Add Koha::Acquisition::Order->cancel
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26515: Remove branchcode from mock_userenv
Bug-26515-Remove-branchcode-from-mockuserenv.patch (text/plain), 1.05 KB, created by
Jonathan Druart
on 2020-10-08 10:18:51 UTC
(
hide
)
Description:
Bug 26515: Remove branchcode from mock_userenv
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-10-08 10:18:51 UTC
Size:
1.05 KB
patch
obsolete
>From d28a3bc1f3c925a6afa3272d1734d12da3adb0c7 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 8 Oct 2020 12:16:49 +0200 >Subject: [PATCH] Bug 26515: Remove branchcode from mock_userenv > >It's the default behaviour of mock_userenv >--- > t/db_dependent/Koha/Acquisition/Order.t | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > >diff --git a/t/db_dependent/Koha/Acquisition/Order.t b/t/db_dependent/Koha/Acquisition/Order.t >index 7cafcc2a93..245b9e94f3 100755 >--- a/t/db_dependent/Koha/Acquisition/Order.t >+++ b/t/db_dependent/Koha/Acquisition/Order.t >@@ -623,8 +623,7 @@ subtest 'cancel() tests' => sub { > $order->add_item( $item->id ); > > my $patron = $builder->build_object({ class => 'Koha::Patrons' }); >- t::lib::Mocks::mock_userenv( >- { patron => $patron, branchcode => $patron->branchcode } ); >+ t::lib::Mocks::mock_userenv({ patron => $patron }); > > # Add a checkout so cancelling fails because od 'book_on_loan' > C4::Circulation::AddIssue( $patron->unblessed, $item->barcode ); >-- >2.20.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 26515
:
110603
|
110604
|
110641
|
110642
|
110751
|
110752
|
110939
|
110940
|
110970
|
110971
|
110992
|
111031
|
111170
|
111172
|
111173
| 111372 |
111430
|
111724