Bugzilla – Attachment 135482 Details for
Bug 29883
Uninitialized value warning when GetAuthorisedValues gets called with no parameters
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29883: Add test
Bug-29883-Add-test.patch (text/plain), 1.11 KB, created by
Jonathan Druart
on 2022-05-31 09:27:09 UTC
(
hide
)
Description:
Bug 29883: Add test
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-05-31 09:27:09 UTC
Size:
1.11 KB
patch
obsolete
>From 181baafe0b5e63e4bf09a46293e09507f5faed4e Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 31 May 2022 11:26:36 +0200 >Subject: [PATCH] Bug 29883: Add test > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29883
:
129472
|
135462
|
135481
| 135482