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 <ldjamison@marywood.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
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);