Lines 144-150
subtest 'html_content() tests' => sub {
Link Here
|
144 |
} |
144 |
} |
145 |
); |
145 |
); |
146 |
|
146 |
|
147 |
t::lib::Mocks::mock_preference( 'NoticeCSS', '' ); |
147 |
t::lib::Mocks::mock_preference( 'AllNoticeStylesheet', '' ); |
148 |
my $css_import = ''; |
148 |
my $css_import = ''; |
149 |
my $message = Koha::Notice::Messages->find($message_id); |
149 |
my $message = Koha::Notice::Messages->find($message_id); |
150 |
my $wrapped_compare = <<"WRAPPED"; |
150 |
my $wrapped_compare = <<"WRAPPED"; |
Lines 165-171
WRAPPED
Link Here
|
165 |
is( $message->html_content, $wrapped_compare, "html_content returned the correct html wrapped letter" ); |
165 |
is( $message->html_content, $wrapped_compare, "html_content returned the correct html wrapped letter" ); |
166 |
|
166 |
|
167 |
my $css_sheet = 'https://localhost/shiny.css'; |
167 |
my $css_sheet = 'https://localhost/shiny.css'; |
168 |
t::lib::Mocks::mock_preference( 'NoticeCSS', $css_sheet ); |
168 |
t::lib::Mocks::mock_preference( 'AllNoticeStylesheet', $css_sheet ); |
169 |
$css_import = qq{<link rel="stylesheet" type="text/css" href="$css_sheet">}; |
169 |
$css_import = qq{<link rel="stylesheet" type="text/css" href="$css_sheet">}; |
170 |
|
170 |
|
171 |
$wrapped_compare = <<"WRAPPED"; |
171 |
$wrapped_compare = <<"WRAPPED"; |
172 |
- |
|
|