Bug 10298: Adapt existing code
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 21 May 2013 15:14:24 +0000 (17:14 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 9 Aug 2013 16:36:17 +0000 (16:36 +0000)
commit950906207237d8056e9f8b775e1d52223a757729
treede07a07fc3b3bca41137763b87b0f8d70d1a2cbc
parenta765d5f88e125e0f43e2e5cfe766bc22f0fd0d08
Bug 10298: Adapt existing code

set_solr and set_zebra is not really useful. It is preferable to use
mock_preference directly.

To test:
1/ Launch Solr
2/ prove -r t/searchengine/
It should produce:
% prove -r t/searchengine/
t/searchengine/000_conn/conn.t ........... ok
t/searchengine/001_search/search_base.t .. ok
t/searchengine/002_index/index_base.t .... IndexRecord called with biblio 2
Indexing biblio 2
t/searchengine/002_index/index_base.t .... ok
t/searchengine/003_query/buildquery.t .... ok
t/searchengine/004_config/load_config.t .. ok
All tests successful.
Files=5, Tests=21,  4 wallclock secs ( 0.03 usr  0.01 sys +  2.74 cusr
0.20 csys =  2.98 CPU)
Result: PASS

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Had to get Solr going again to test this, man .. they could make that
easier

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
t/searchengine/000_conn/conn.t
t/searchengine/001_search/search_base.t
t/searchengine/002_index/index_base.t
t/searchengine/003_query/buildquery.t
t/searchengine/004_config/load_config.t