Lines 3-17
Link Here
|
3 |
# This Koha test module is a stub! |
3 |
# This Koha test module is a stub! |
4 |
# Add more tests here!!! |
4 |
# Add more tests here!!! |
5 |
|
5 |
|
6 |
use strict; |
6 |
use Modern::Perl; |
7 |
use warnings; |
7 |
use Test::More; |
8 |
|
8 |
use Module::Load::Conditional qw/check_install/; |
9 |
use Test::More tests => 32; |
|
|
10 |
|
9 |
|
11 |
BEGIN { |
10 |
BEGIN { |
12 |
use_ok('C4::Tags'); |
11 |
if ( check_install( module => 'Lingua::Ispell' ) ) { |
|
|
12 |
plan tests => 32; |
13 |
} else { |
14 |
plan skip_all => "Need Lingua::Ispell"; |
15 |
} |
13 |
} |
16 |
} |
14 |
|
17 |
|
|
|
18 |
use_ok('C4::Tags'); |
19 |
|
15 |
# Check no tags case. |
20 |
# Check no tags case. |
16 |
my @tagsarray; |
21 |
my @tagsarray; |
17 |
my $tags = \@tagsarray; |
22 |
my $tags = \@tagsarray; |
18 |
- |
|
|