Bugzilla – Attachment 134865 Details for
Bug 29418
Error searching for analytics in detail view
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29418: Unit test
Bug-29418-Unit-test.patch (text/plain), 1.29 KB, created by
Martin Renvoize (ashimema)
on 2022-05-11 11:15:57 UTC
(
hide
)
Description:
Bug 29418: Unit test
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-05-11 11:15:57 UTC
Size:
1.29 KB
patch
obsolete
>From 14dbe792a7a06c499018efa91be71152b0040394 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 11 May 2022 12:15:12 +0100 >Subject: [PATCH] Bug 29418: Unit test > >--- > t/Koha/SearchEngine/Zebra/QueryBuilder.t | 15 ++++++++++++++- > 1 file changed, 14 insertions(+), 1 deletion(-) > >diff --git a/t/Koha/SearchEngine/Zebra/QueryBuilder.t b/t/Koha/SearchEngine/Zebra/QueryBuilder.t >index 809eb3a524..2a59593728 100755 >--- a/t/Koha/SearchEngine/Zebra/QueryBuilder.t >+++ b/t/Koha/SearchEngine/Zebra/QueryBuilder.t >@@ -17,7 +17,7 @@ > > use Modern::Perl; > >-use Test::More tests => 3; >+use Test::More tests => 4; > use Test::MockModule; > > use_ok('Koha::SearchEngine::Zebra::QueryBuilder'); >@@ -76,3 +76,16 @@ subtest 'build_query_compat() tests' => sub { > ( undef, $query ) = $qb->build_query_compat( undef, undef, undef, undef, undef, undef, undef, { suppress => 0 } ); > is( $query, 'query', 'Suppress part of the query not added (PQF)'); > }; >+ >+subtest 'clean_search_term() tests' => sub { >+ plan tests => 2; >+ >+ my $qb; >+ ok( >+ $qb = Koha::SearchEngine::Zebra::QueryBuilder->new(), >+ 'Creating a new QueryBuilder object' >+ ); >+ >+ my $res = $qb->clean_search_term('test query\:'); >+ is($res, 'test query', 'remove colon at the end'); >+}; >-- >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 29418
:
127325
|
127326
|
134865
|
134866
|
137023
|
137048
|
137135
|
137136
|
137137
|
137138
|
137139
|
137140
|
137142
|
137171
|
137172
|
137173
|
137174