Bugzilla – Attachment 99648 Details for
Bug 24735
Remove QueryParser-related code
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24735: remove more code from tests
Bug-24735-remove-more-code-from-tests.patch (text/plain), 1.83 KB, created by
Jonathan Druart
on 2020-02-26 14:59:27 UTC
(
hide
)
Description:
Bug 24735: remove more code from tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-02-26 14:59:27 UTC
Size:
1.83 KB
patch
obsolete
>From c83155aac8a9b51356e51a387bc41dc8a3bf9c58 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 26 Feb 2020 15:59:02 +0100 >Subject: [PATCH] Bug 24735: remove more code from tests > >That was use by QP tests >--- > t/db_dependent/Search.t | 23 ----------------------- > 1 file changed, 23 deletions(-) > >diff --git a/t/db_dependent/Search.t b/t/db_dependent/Search.t >index 53f98c147d..34d4e338ea 100644 >--- a/t/db_dependent/Search.t >+++ b/t/db_dependent/Search.t >@@ -656,29 +656,6 @@ ok(MARC::Record::new_from_xml($results_hashref->{biblioserver}->{RECORDS}->[0],' > "Warning is raised correctly for invalid tags in MARC::Record"; > is(scalar(@newresults), 0, 'a record that cannot be parsed by MARC::Record is simply skipped (bug 10684)'); > >- # Testing exploding indexes >- my $term; >- my $searchmodule = new Test::MockModule('C4::Search'); >- $searchmodule->mock('SimpleSearch', sub { >- my $query = shift; >- >- is($query, "he:$term", "Searching for expected term '$term' for exploding") or return '', [], 0; >- >- my $record = MARC::Record->new; >- if ($query =~ m/Arizona/) { >- $record->add_fields( >- [ '001', '1234' ], >- [ '151', ' ', ' ', a => 'Arizona' ], >- [ '551', ' ', ' ', a => 'United States', w => 'g' ], >- [ '551', ' ', ' ', a => 'Maricopa County', w => 'h' ], >- [ '551', ' ', ' ', a => 'Navajo County', w => 'h' ], >- [ '551', ' ', ' ', a => 'Pima County', w => 'h' ], >- [ '551', ' ', ' ', a => 'New Mexico' ], >- ); >- } >- return '', [ $record->as_usmarc() ], 1; >- }); >- > my ($auths, $count) = SearchAuthorities( > ['mainentry'], ['and'], [''], ['starts'], > ['shakespeare'], 0, 10, '', '', 1 >-- >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 24735
:
99643
|
99647
|
99648
|
99649
|
99811
|
99812