File: | t/Languages.t |
Coverage: | 100.0% |
line | stmt | bran | cond | sub | time | code |
---|---|---|---|---|---|---|
1 | #!/usr/bin/perl | |||||
2 | # | |||||
3 | # This Koha test module is a stub! | |||||
4 | # Add more tests here!!! | |||||
5 | ||||||
6 | 1 1 1 | 1.33283531560205e+15 36 59 | use strict; | |||
7 | 1 1 1 | 33 27 61 | use warnings; | |||
8 | ||||||
9 | 1 1 1 | 253 35455 13 | use Test::More tests => 4; | |||
10 | ||||||
11 | BEGIN { | |||||
12 | 1 | 6651 | use_ok('C4::Languages'); | |||
13 | } | |||||
14 | ||||||
15 | 1 | 755836 | isnt(C4::Languages::_get_themes(), undef, 'testing _get_themes doesnt return undef'); | |||
16 | ||||||
17 | 1 | 469 | ok(C4::Languages::_get_language_dirs(), 'test getting _get_language_dirs'); | |||
18 | ||||||
19 | 1 | 340 | is(C4::Languages::accept_language(),undef, 'test that accept_languages returns undef when nothing is entered'); |