Bugzilla – Attachment 177484 Details for
Bug 31856
Improve performance of serials subscriptions search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31856: Add test for get_description_by_category_and_authorised_value
Bug-31856-Add-test-for-getdescriptionbycategoryand.patch (text/plain), 1.28 KB, created by
David Gustafsson
on 2025-02-03 20:16:04 UTC
(
hide
)
Description:
Bug 31856: Add test for get_description_by_category_and_authorised_value
Filename:
MIME Type:
Creator:
David Gustafsson
Created:
2025-02-03 20:16:04 UTC
Size:
1.28 KB
patch
obsolete
>From 0e448aa67331f37a8ba0799e89b8c601abafd7dc Mon Sep 17 00:00:00 2001 >From: David Gustafsson <david.gustafsson@ub.gu.se> >Date: Wed, 19 Oct 2022 16:11:15 +0200 >Subject: [PATCH] Bug 31856: Add test for > get_description_by_category_and_authorised_value > >--- > t/db_dependent/AuthorisedValues.t | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > >diff --git a/t/db_dependent/AuthorisedValues.t b/t/db_dependent/AuthorisedValues.t >index 218c8d29aa4..e8f762dbf11 100755 >--- a/t/db_dependent/AuthorisedValues.t >+++ b/t/db_dependent/AuthorisedValues.t >@@ -327,6 +327,23 @@ subtest 'search_by_*_field + find_by_koha_field + get_description + authorised_v > > $schema->storage->txn_rollback; > }; >+ >+ subtest 'get_description_by_category_and_authorised_value' => sub { >+ plan tests => 1; >+ my $description = Koha::AuthorisedValues->get_description_by_category_and_authorised_value( >+ { >+ category => $av_0->category,, >+ authorised_value => $av_0->authorised_value, >+ } >+ ); >+ is_deeply( >+ $description, >+ { >+ lib => $av_0->lib, >+ opac_description => $av_0->lib_opac >+ } >+ ); >+ }; > }; > > subtest 'is_integer_only' => sub { >-- >2.48.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 31856
:
142058
|
142156
|
142157
|
150651
|
150652
|
150653
|
151077
|
151078
|
177383
|
177384
|
177385
|
177386
|
177387
|
177482
|
177483
| 177484 |
177485
|
177486
|
177487
|
177509
|
177510
|
177511
|
177512
|
177514