From 306614068eb20cc52dfb6b69227f72e0e37baf1e Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Fri, 4 Aug 2017 14:24:38 -0400 Subject: [PATCH] Bug 19042: Silence warnings t/db_dependent/Letters.t TEST PLAN --------- prove t/db_dependent/Letters.t -- there will be a message: "C4::Context->userenv not defined!" apply this patch prove t/db_dependent/Letters.t -- there will no longer be that message. run qa test tools Signed-off-by: Lee Jamison Signed-off-by: Jonathan Druart Signed-off-by: Jonathan Druart (cherry picked from commit d01ce104a7711814152e4f8228064f79c8a7f68c) Signed-off-by: Fridolin Somers --- t/db_dependent/Letters.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Letters.t b/t/db_dependent/Letters.t index cbb2bec481..c0a8a5d7eb 100644 --- a/t/db_dependent/Letters.t +++ b/t/db_dependent/Letters.t @@ -196,7 +196,9 @@ subtest 'getletter' => sub { my $context = Test::MockModule->new('C4::Context'); $context->mock( 'userenv', sub { - return { branch => "anotherlib" } + return { + flags => 1, + branch => "anotherlib" } }); t::lib::Mocks::mock_preference('IndependentBranches', 1); -- 2.39.5