Bugzilla – Attachment 183839 Details for
Bug 40277
Warn in C4::Koha::GetAuthorisedValues()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40277: Add a test
Bug-40277-Add-a-test.patch (text/plain), 1.25 KB, created by
Jonathan Druart
on 2025-07-07 13:00:47 UTC
(
hide
)
Description:
Bug 40277: Add a test
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-07-07 13:00:47 UTC
Size:
1.25 KB
patch
obsolete
>From 5f49a144ea476b2e8abfa3c9cd2e87177206912f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 7 Jul 2025 15:00:12 +0200 >Subject: [PATCH] Bug 40277: Add a test > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > t/db_dependent/Koha.t | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha.t b/t/db_dependent/Koha.t >index 986a8b354c5..a73738c9407 100755 >--- a/t/db_dependent/Koha.t >+++ b/t/db_dependent/Koha.t >@@ -11,6 +11,7 @@ use Test::Warn; > use Test::Deep; > > use t::lib::TestBuilder; >+use t::lib::Mocks; > > use C4::Context; > use Koha::Database; >@@ -33,7 +34,7 @@ my $dbh = C4::Context->dbh; > our $itype_1 = $builder->build( { source => 'Itemtype' } ); > > subtest 'Authorized Values Tests' => sub { >- plan tests => 4; >+ plan tests => 5; > > my $data = { > category => 'CATEGORY', >@@ -166,6 +167,9 @@ subtest 'Authorized Values Tests' => sub { > > warning_is { GetAuthorisedValues() } [], 'No warning when no parameter passed to GetAuthorisedValues'; > >+ C4::Context->set_userenv(); >+ warning_is { GetAuthorisedValues("BUG10656") } [], 'No warning when userenv is anonymous'; >+ > }; > > subtest 'isbn tests' => sub { >-- >2.34.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 40277
:
183644
|
183803
|
183838
| 183839