From fcf7b222cb8a44c69ab0e7299743ef58106483e2 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 --- 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 cbb2bec..c0a8a5d 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.1.4