From ce67332c219c26f98b7b9f5bcd3fae4b5e5ffb17 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 6 Nov 2018 10:55:50 -0300 Subject: [PATCH] Bug 21770: Add tests for html_entity Signed-off-by: Kyle M Hall --- t/template_filters.t | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/t/template_filters.t b/t/template_filters.t index 33e1af9510..be638e1c3c 100644 --- a/t/template_filters.t +++ b/t/template_filters.t @@ -198,7 +198,7 @@ EXPECTED }; subtest 'Use uri filter if needed' => sub { - plan tests => 3; + plan tests => 4; my $input = <[% patron.phone %] [% patron.emailpro %] @@ -208,6 +208,7 @@ subtest 'Use uri filter if needed' => sub { [% myuri %] [% myurl %] [% myurl %] +[% myurl %] [% another_var %] [% myuri | html %] [% myurl | html %] [% myurl | html %] +[% myurl | html %] [% another_var | html %] [% var | html %] +INPUT + @missing_filters = t::lib::QA::TemplateFilters::missing_filters($input); + is_deeply( \@missing_filters, [], 'html_entity is a valid filter for href' ); }; -- 2.17.2 (Apple Git-113)