From c83155aac8a9b51356e51a387bc41dc8a3bf9c58 Mon Sep 17 00:00:00 2001 From: Jonathan Druart 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