diff --git a/t/template_filters.t b/t/template_filters.t
index ffc86843e8..0a24be6982 100755
--- a/t/template_filters.t
+++ b/t/template_filters.t
@@ -198,7 +198,7 @@ EXPECTED
};
subtest 'Use uri filter if needed' => sub {
- plan tests => 4;
+ plan tests => 5;
my $input = <[% patron.phone %]
[% patron.emailpro %]
@@ -248,6 +248,23 @@ INPUT
],
);
+ $input = <[% var | html %][% var | html %]
+INPUT
+ @missing_filters = t::lib::QA::TemplateFilters::missing_filters($input);
+ is_deeply(
+ \@missing_filters,
+ [
+ {
+ error => "wrong_html_filter",
+ line =>
+ '[% var | html %][% var | html %]',
+ line_number => 1
+ }
+
+ ],
+ );
+
$input = <[% var | html %]
INPUT