Lines 5-10
Link Here
|
5 |
|
5 |
|
6 |
use Modern::Perl; |
6 |
use Modern::Perl; |
7 |
use Test::More tests => 5; |
7 |
use Test::More tests => 5; |
|
|
8 |
use Test::Warn; |
8 |
|
9 |
|
9 |
use t::lib::TestBuilder; |
10 |
use t::lib::TestBuilder; |
10 |
|
11 |
|
Lines 26-32
my $dbh = C4::Context->dbh;
Link Here
|
26 |
our $itype_1 = $builder->build({ source => 'Itemtype' }); |
27 |
our $itype_1 = $builder->build({ source => 'Itemtype' }); |
27 |
|
28 |
|
28 |
subtest 'Authorized Values Tests' => sub { |
29 |
subtest 'Authorized Values Tests' => sub { |
29 |
plan tests => 3; |
30 |
plan tests => 4; |
30 |
|
31 |
|
31 |
my $data = { |
32 |
my $data = { |
32 |
category => 'CATEGORY', |
33 |
category => 'CATEGORY', |
Lines 153-158
subtest 'Authorized Values Tests' => sub {
Link Here
|
153 |
); |
154 |
); |
154 |
} |
155 |
} |
155 |
|
156 |
|
|
|
157 |
warning_is { GetAuthorisedValues() } [], 'No warning when no parameter passed to GetAuthorisedValues'; |
158 |
|
156 |
}; |
159 |
}; |
157 |
|
160 |
|
158 |
subtest 'ISBN tests' => sub { |
161 |
subtest 'ISBN tests' => sub { |
159 |
- |
|
|