Lines 198-204
EXPECTED
Link Here
|
198 |
}; |
198 |
}; |
199 |
|
199 |
|
200 |
subtest 'Use uri filter if needed' => sub { |
200 |
subtest 'Use uri filter if needed' => sub { |
201 |
plan tests => 4; |
201 |
plan tests => 5; |
202 |
my $input = <<INPUT; |
202 |
my $input = <<INPUT; |
203 |
<a href="tel:[% patron.phone %]">[% patron.phone %]</a> |
203 |
<a href="tel:[% patron.phone %]">[% patron.phone %]</a> |
204 |
<a href="mailto:[% patron.emailpro %]" title="[% patron.emailpro %]">[% patron.emailpro %]</a> |
204 |
<a href="mailto:[% patron.emailpro %]" title="[% patron.emailpro %]">[% patron.emailpro %]</a> |
Lines 248-253
INPUT
Link Here
|
248 |
], |
248 |
], |
249 |
); |
249 |
); |
250 |
|
250 |
|
|
|
251 |
$input = <<INPUT; |
252 |
<a href="[% good_filter | uri %]">[% var | html %]</a><a href="[% wrong_filter | html %]">[% var | html %]</a> |
253 |
INPUT |
254 |
@missing_filters = t::lib::QA::TemplateFilters::missing_filters($input); |
255 |
is_deeply( |
256 |
\@missing_filters, |
257 |
[ |
258 |
{ |
259 |
error => "wrong_html_filter", |
260 |
line => |
261 |
'<a href="[% good_filter | uri %]">[% var | html %]</a><a href="[% wrong_filter | html %]">[% var | html %]</a>', |
262 |
line_number => 1 |
263 |
} |
264 |
|
265 |
], |
266 |
); |
267 |
|
251 |
$input = <<INPUT; |
268 |
$input = <<INPUT; |
252 |
<a href="[% good_raw_filter | \$raw %]">[% var | html %]</a> |
269 |
<a href="[% good_raw_filter | \$raw %]">[% var | html %]</a> |
253 |
INPUT |
270 |
INPUT |
254 |
- |
|
|