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);