From 181baafe0b5e63e4bf09a46293e09507f5faed4e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 31 May 2022 11:26:36 +0200 Subject: [PATCH] Bug 29883: Add test Signed-off-by: Jonathan Druart --- t/db_dependent/Koha.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Koha.t b/t/db_dependent/Koha.t index f2d5ad614b7..36f1b08b557 100755 --- a/t/db_dependent/Koha.t +++ b/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 { -- 2.25.1