X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=xt%2Ftt_valid.t;h=e33b760408fda80cda48972b3b5df7f74fa9aa08;hb=de03c263f0579d28a735e3b1261121e439263a82;hp=97725ee37046f6e6afccef8921327862f9e491ab;hpb=6f6bfb8aff59ae10b4bf7e8d4bdcb31c5b269458;p=koha_fer diff --git a/xt/tt_valid.t b/xt/tt_valid.t index 97725ee370..e33b760408 100755 --- a/xt/tt_valid.t +++ b/xt/tt_valid.t @@ -38,7 +38,7 @@ my @files_with_directive_in_tag = do { while ( my $token = $parser->next_token ) { my $attr = $token->{_attr}; next unless $attr; - push @lines, $token->{_lc} if $attr->{'[%'}; + push @lines, $token->{_lc} if $attr->{'[%'} or $attr->{'[%-'}; } ($dir) = $dir =~ /koha-tmpl\/(.*)$/; push @files, { name => "$dir/$name", lines => \@lines } if @lines; @@ -57,7 +57,8 @@ ok( !@files_with_directive_in_tag, "TT syntax: not using TT directive within HTM ); my $testtoken = 0; -C4::TTParser::unshift_token($testtoken); +my $ttparser = C4::TTParser->new(); +$ttparser->unshift_token($testtoken); my $testtokenagain = C4::TTParser::next_token(); is( $testtoken, $testtokenagain, "Token received same as original put on stack");