Bugzilla – Attachment 50157 Details for
Bug 16249
Zebra-specific tests should pass with ES disabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16249: Zebra-specific tests should pass with ES disabled
Bug-16249-Zebra-specific-tests-should-pass-with-ES.patch (text/plain), 1.37 KB, created by
Tomás Cohen Arazi (tcohen)
on 2016-04-12 18:30:43 UTC
(
hide
)
Description:
Bug 16249: Zebra-specific tests should pass with ES disabled
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2016-04-12 18:30:43 UTC
Size:
1.37 KB
patch
obsolete
>From f9aa6efca62f5fd06789bcf6b35169545f34ba77 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@unc.edu.ar> >Date: Tue, 12 Apr 2016 15:26:44 -0300 >Subject: [PATCH] Bug 16249: Zebra-specific tests should pass with ES disabled > >This patch makes the t/db_dependent/Search.t tests correctly set >'Zebra' for the 'SearchEngine' syspref. > >To test: >- On top of bug 12478 branch, run > $ prove t/db_dependent/Search.t >=> FAIL: Tests fail >- Apply the patch >- Run: > $ prove t/db_dependent/Search.t >=> SUCCESS: Tests now pass. >--- > t/db_dependent/Search.t | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/t/db_dependent/Search.t b/t/db_dependent/Search.t >index c61c583..aeec564 100644 >--- a/t/db_dependent/Search.t >+++ b/t/db_dependent/Search.t >@@ -93,6 +93,7 @@ our $QueryAutoTruncate = 0; > our $QueryWeightFields = 0; > our $QueryFuzzy = 0; > our $UseQueryParser = 0; >+our $SearchEngine = 'Zebra'; > our $marcflavour = 'MARC21'; > our $contextmodule = new Test::MockModule('C4::Context'); > $contextmodule->mock('preference', sub { >@@ -109,6 +110,8 @@ $contextmodule->mock('preference', sub { > return $QueryFuzzy; > } elsif ($pref eq 'UseQueryParser') { > return $UseQueryParser; >+ } elsif ($pref eq 'SearchEngine') { >+ return $SearchEngine; > } elsif ($pref eq 'maxRecordsForFacets') { > return 20; > } elsif ($pref eq 'FacetLabelTruncationLength') { >-- >2.7.4
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 16249
:
50157
|
50160
|
50762
|
51297