Bug 11533: (regression test) QP breaks authority search
This patch duplicates the SearchAuthority tests, with QP enabled.
Searching shouldn't be affected by QP. Instructions for manually
reproducing this can be read in the first comment for the bug entry.
Sponsored-by: Universidad Nacional de Cordoba
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 99e2686a49)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
943a531af6
commit
9c5bb7ab90
|
|
@ -12,7 +12,7 @@ use YAML;
|
|||
use C4::Debug;
|
||||
require C4::Context;
|
||||
|
||||
use Test::More tests => 212;
|
||||
use Test::More tests => 216;
|
||||
use Test::MockModule;
|
||||
use MARC::Record;
|
||||
use File::Spec;
|
||||
|
|
@ -742,6 +742,20 @@ sub run_marc21_search_tests {
|
|||
);
|
||||
is($count, 1, 'MARC21 authorities: one hit on match contains "沙士北亞威廉姆"');
|
||||
|
||||
$UseQueryParser = 1;
|
||||
|
||||
($auths, $count) = SearchAuthorities(
|
||||
['mainentry'], ['and'], [''], ['starts'],
|
||||
['shakespeare'], 0, 10, '', '', 1
|
||||
);
|
||||
is($count, 1, 'MARC21 authorities: one hit on mainentry starts with "shakespeare" (QP)');
|
||||
($auths, $count) = SearchAuthorities(
|
||||
['match'], ['and'], [''], ['contains'],
|
||||
['沙士北亞威廉姆'], 0, 10, '', '', 1
|
||||
);
|
||||
is($count, 1, 'MARC21 authorities: one hit on match contains "沙士北亞威廉姆" (QP)');
|
||||
|
||||
|
||||
cleanup();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue