@@ -, +, @@ --- t/db_dependent/Koha/Notice/Message.t | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) --- a/t/db_dependent/Koha/Notice/Message.t +++ a/t/db_dependent/Koha/Notice/Message.t @@ -72,6 +72,8 @@ subtest 'html_content() tests' => sub { } ); + t::lib::Mocks::mock_preference( 'NoticeCSS', '' ); + my $css_import = ''; my $message = Koha::Notice::Messages->find($message_id); my $wrapped_compare = <<"WRAPPED"; sub { $firstname - + $css_import This is a test template using borrower $borrowernumber @@ -92,6 +94,7 @@ WRAPPED my $css_sheet = 'https://localhost/shiny.css'; t::lib::Mocks::mock_preference( 'NoticeCSS', $css_sheet ); + $css_import = qq{ $wrapped_compare = <<"WRAPPED"; $firstname - + $css_import This is a test template using borrower $borrowernumber --