@@ -, +, @@ --------- -- there will be a message: "C4::Context->userenv not defined!" -- there will no longer be that message. --- t/db_dependent/Letters.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/t/db_dependent/Letters.t +++ a/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); --