Bug 8846: Exploded Terms test sneakily uses database
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Sat, 29 Sep 2012 13:28:43 +0000 (09:28 -0400)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Thu, 1 Nov 2012 12:41:29 +0000 (08:41 -0400)
commite2a702653d7d1db52e02c6f0e4f2e2850312b481
treeb5397f9cc9314a9a8a1252ebb0d916269a4c08ec
parent43ba461f3905dc07e7e97bb23dc230fdd69ca2d7
Bug 8846: Exploded Terms test sneakily uses database

Even though there is no need for anything stored in the database for the
test, C4::Templates requires the database and a koha-conf.xml. The
solution is to mock all database- and koha-conf-using routines.

To test:
1) Stop MySQL
2) Unset KOHA_CONF
3) Run test

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
t/db_dependent/SuggestionEngine_ExplodedTerms.t