1 # Copyright 2018 Koha Development Team
3 # This file is part of Koha.
5 # Koha is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
10 # Koha is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with Koha; if not, see <http://www.gnu.org/licenses>.
19 use Test::More tests => 1;
20 use t::lib::QA::TemplateFilters;
24 [% INCLUDE 'doc-head-open.inc' %]
25 <title>Koha › Patrons ›
26 [% UNLESS blocking_error %]
27 Patron details for [% INCLUDE 'patron-title.inc' no_html = 1 %]
28 [% just_a_var %] A N D [% another_one_on_same_line %]
29 [% just_a_var_filtered|html %]
30 [% just_a_var_filtered |html %]
31 [% just_a_var_filtered| html %]
32 [% just_a_var_filtered | html %]
34 [% IF ( patron.othernames | html ) %]“[% patron.othernames %]”[% END %]
35 [% Asset.css("css/datatables.css").raw %]
36 [% Asset.css("css/datatables.css") | \$raw %]
38 <a href="tel:[% patron.phone %]">[% patron.phone %]</a>
39 <a title="[% patron.emailpro %]" href="mailto:[% patron.emailpro | uri %]">[% patron.emailpro %]</a>
40 [% patron_message.get_column('manager_surname') %]
63 my @expected_errors = (
65 error => q{missing_filter},
67 q{ [% just_a_var %] A N D [% another_one_on_same_line %]},
71 error => q{missing_filter},
73 q{ [% just_a_var %] A N D [% another_one_on_same_line %]},
77 error => q{missing_filter},
79 q{ [% IF ( patron.othernames | html ) %]“[% patron.othernames %]”[% END %]},
83 error => q{asset_must_be_raw},
84 line => q{ [% Asset.css("css/datatables.css").raw %]},
88 error => q{missing_filter},
89 line => q{<a href="tel:[% patron.phone %]">[% patron.phone %]</a>},
93 error => q{missing_filter},
94 line => q{<a href="tel:[% patron.phone %]">[% patron.phone %]</a>},
98 error => q{missing_filter},
100 q{<a title="[% patron.emailpro %]" href="mailto:[% patron.emailpro | uri %]">[% patron.emailpro %]</a>},
104 error => q{missing_filter},
106 q{<a title="[% patron.emailpro %]" href="mailto:[% patron.emailpro | uri %]">[% patron.emailpro %]</a>},
110 error => q{missing_filter},
111 line => q{[% patron_message.get_column('manager_surname') %]},
115 error => q{missing_filter},
116 line => q{[%- var -%]},
120 error => q{missing_filter},
121 line => q{[% - var - %]},
125 error => q{missing_filter},
126 line => q{[%~ var ~%]},
130 error => q{missing_filter},
131 line => q{[% ~ var ~ %]},
136 my @get = t::lib::QA::TemplateFilters::missing_filters($input);
137 is_deeply( \@get, \@expected_errors);