diff --git a/t/db_dependent/Letters.t b/t/db_dependent/Letters.t index c0a8a5d7eb..a08603bcf3 100644 --- a/t/db_dependent/Letters.t +++ b/t/db_dependent/Letters.t @@ -184,6 +184,7 @@ is( $letters->[0]->{name}, 'my name', 'GetLetters gets the name correctly' ); # getletter subtest 'getletter' => sub { plan tests => 16; + t::lib::Mocks::mock_preference('IndependentBranches', 0); my $letter = C4::Letters::getletter('my module', 'my code', $library->{branchcode}, 'email'); is( $letter->{branchcode}, $library->{branchcode}, 'GetLetters gets the branch code correctly' ); is( $letter->{module}, 'my module', 'GetLetters gets the module correctly' );