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:
Jonathan Druart 2022-05-31 11:26:36 +02:00 committed by Tomas Cohen Arazi
parent 44e126bcc7
commit 7402585683
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -5,6 +5,7 @@
use Modern::Perl;
use Test::More tests => 5;
use Test::Warn;
use t::lib::TestBuilder;
@ -26,7 +27,7 @@ my $dbh = C4::Context->dbh;
our $itype_1 = $builder->build({ source => 'Itemtype' });
subtest 'Authorized Values Tests' => sub {
plan tests => 3;
plan tests => 4;
my $data = {
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 {