Bugzilla – Attachment 98721 Details for
Bug 24586
Double quote escape doesn't work properly in C4::AuthoritiesMarc::SearchAuthorities with QueryParser enabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24586: Add tests
Bug-24586-Add-tests.patch (text/plain), 1.46 KB, created by
Jonathan Druart
on 2020-02-11 16:46:13 UTC
(
hide
)
Description:
Bug 24586: Add tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-02-11 16:46:13 UTC
Size:
1.46 KB
patch
obsolete
>From 2508d244a4dad2da233d75e50f59aaea04c1e12a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 11 Feb 2020 17:45:14 +0100 >Subject: [PATCH] Bug 24586: Add tests > >Not sure about this approach. Maybe we are hiding a problem coming from >somewhere else. Maybe better to handle the error from the callers. >--- > t/db_dependent/Search.t | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Search.t b/t/db_dependent/Search.t >index 60da046249..a4b2544a0d 100644 >--- a/t/db_dependent/Search.t >+++ b/t/db_dependent/Search.t >@@ -814,6 +814,14 @@ ok(MARC::Record::new_from_xml($results_hashref->{biblioserver}->{RECORDS}->[0],' > ); > is($count, 1, 'MARC21 authorities: one hit on match contains "æ²å£«åäºå¨å»å§" (QP)'); > >+ warning_like { >+ SearchAuthorities( >+ ['^{"#\~@'], ['ax"nd'], [''], ['st"axrts'], >+ ['sha"kespeare'], 0, 10, '', '', 1 >+ ) >+ } qr{^Bad PQF query: }, >+ "SearchAuthorties should handle bad PQF query"; >+ > # retrieve records that are larger than the MARC limit of 99,999 octets > ( undef, $results_hashref, $facets_loop ) = > getRecords('ti:marc the large record', '', [], [ 'biblioserver' ], '20', 0, \%branches, \%itemtypes, 'ccl', undef); >@@ -971,7 +979,7 @@ sub run_unimarc_search_tests { > } > > subtest 'MARC21 + DOM' => sub { >- plan tests => 112; >+ plan tests => 113; > run_marc21_search_tests(); > }; > >-- >2.11.0
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 24586
:
98423
| 98721