Bugzilla – Attachment 126656 Details for
Bug 29284
Koha dies when an analytics search fails in Elasticsearch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29284: Unit test
Bug-29284-Unit-test.patch (text/plain), 1.21 KB, created by
Nick Clemens
on 2021-10-21 10:33:41 UTC
(
hide
)
Description:
Bug 29284: Unit test
Filename:
MIME Type:
Creator:
Nick Clemens
Created:
2021-10-21 10:33:41 UTC
Size:
1.21 KB
patch
obsolete
>From a37c93392d5d57f35e20a21509560e8765365d5f Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 21 Oct 2021 10:08:05 +0000 >Subject: [PATCH] Bug 29284: Unit test > >--- > t/Koha/SearchEngine/Elasticsearch/QueryBuilder.t | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/t/Koha/SearchEngine/Elasticsearch/QueryBuilder.t b/t/Koha/SearchEngine/Elasticsearch/QueryBuilder.t >index 2a2e950867..a507b2e065 100755 >--- a/t/Koha/SearchEngine/Elasticsearch/QueryBuilder.t >+++ b/t/Koha/SearchEngine/Elasticsearch/QueryBuilder.t >@@ -187,7 +187,7 @@ subtest '_split_query() tests' => sub { > }; > > subtest 'clean_search_term() tests' => sub { >- plan tests => 24; >+ plan tests => 25; > > my $qb; > ok( >@@ -239,6 +239,9 @@ subtest 'clean_search_term() tests' => sub { > $res = $qb->clean_search_term('test! and more'); > is($res, 'test and more', 'remove exclamation sign at with space after it'); > >+ $res = $qb->clean_search_term('test! and more (and more!)'); >+ is($res, 'test and more (and more)', 'remove exclamation sign followed by close parentheses'); >+ > $res = $qb->clean_search_term('!test'); > is($res, '!test', 'exclamation sign left untouched'); > >-- >2.20.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 29284
:
126583
|
126584
|
126586
|
126587
| 126656 |
126657
|
126658