Bug 29883: Add test
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
44e126bcc7
commit
7402585683
1 changed files with 4 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
||||||
|
|
||||||
use Modern::Perl;
|
use Modern::Perl;
|
||||||
use Test::More tests => 5;
|
use Test::More tests => 5;
|
||||||
|
use Test::Warn;
|
||||||
|
|
||||||
use t::lib::TestBuilder;
|
use t::lib::TestBuilder;
|
||||||
|
|
||||||
|
@ -26,7 +27,7 @@ my $dbh = C4::Context->dbh;
|
||||||
our $itype_1 = $builder->build({ source => 'Itemtype' });
|
our $itype_1 = $builder->build({ source => 'Itemtype' });
|
||||||
|
|
||||||
subtest 'Authorized Values Tests' => sub {
|
subtest 'Authorized Values Tests' => sub {
|
||||||
plan tests => 3;
|
plan tests => 4;
|
||||||
|
|
||||||
my $data = {
|
my $data = {
|
||||||
category => 'CATEGORY',
|
category => 'CATEGORY',
|
||||||
|
@ -153,6 +154,8 @@ subtest 'Authorized Values Tests' => sub {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
warning_is { GetAuthorisedValues() } [], 'No warning when no parameter passed to GetAuthorisedValues';
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
subtest 'ISBN tests' => sub {
|
subtest 'ISBN tests' => sub {
|
||||||
|
|
Loading…
Reference in a new issue