@@ -, +, @@ --- t/db_dependent/Koha.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/t/db_dependent/Koha.t +++ a/t/db_dependent/Koha.t @@ -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 { --