From a7a6223f42d54e8994c27243819e2cda2096db65 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 27 Mar 2019 13:13:48 +0000 Subject: [PATCH] Bug 22008: (follow-up) Additional test fix and fix typo --- t/db_dependent/Circulation.t | 2 +- t/db_dependent/Koha/Holds.t | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t index 6c5e6e9566..fa4e6342ac 100755 --- a/t/db_dependent/Circulation.t +++ b/t/db_dependent/Circulation.t @@ -2006,7 +2006,7 @@ subtest '_FixAccountForLostAndReturned' => sub { plan tests => 10; my $patron = $builder->build_object( { class => 'Koha::Patrons' } ); - my manager = $builder->build_object({ class => "Koha::Patrons" }); + my $manager = $builder->build_object({ class => "Koha::Patrons" }); t::lib::Mocks::mock_userenv({ patron => $manager,branchcode => $manager->branchcode }); my $item = $builder->build_sample_item( diff --git a/t/db_dependent/Koha/Holds.t b/t/db_dependent/Koha/Holds.t index c2399d66b5..783204a33e 100644 --- a/t/db_dependent/Koha/Holds.t +++ b/t/db_dependent/Koha/Holds.t @@ -47,6 +47,8 @@ subtest 'cancel' => sub { itype => $itemtype->itemtype, }; my $item = $builder->build_object( { class => 'Koha::Items', value => $item_info } ); + my $manager = $builder->build_object({ class => "Koha::Patrons" }); + t::lib::Mocks::mock_userenv({ patron => $manager,branchcode => $manager->branchcode }); my ( @patrons, @holds ); for my $i ( 0 .. 2 ) { -- 2.11.0