From d28a3bc1f3c925a6afa3272d1734d12da3adb0c7 Mon Sep 17 00:00:00 2001 From: Jonathan Druart 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