Bug 7309 - Add NORMARCslim2intranetDetail.xsl for detail view in intranet
[koha.git] / t / TmplToken.t
blobb9f161259479ed466f214e1a4c92f4773853a93f
1 #!/usr/bin/perl
3 # This Koha test module is a stub!
4 # Add more tests here!!!
6 use strict;
7 use warnings;
8 use C4::TmplTokenType;
9 use Test::More tests => 7;
11 BEGIN {
12 use_ok('C4::TmplToken');
15 ok (my $token = C4::TmplToken->new('test',C4::TmplTokenType::TEXT,10,'/tmp/translate.txt'), "Create new");
16 ok ($token->string eq 'test', "String works");
17 ok ($token->type == C4::TmplTokenType::TEXT, "Token works");
18 ok ($token->line_number == 10, "Line number works");
19 ok ($token->pathname eq '/tmp/translate.txt', "Path works");
22 ok ($token->text_p, "text_p works");