]> git.koha-community.org Git - koha.git/commit
Bug 8649: Add unit test for C4::Search
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Mon, 13 Aug 2012 22:01:37 +0000 (18:01 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Thu, 13 Sep 2012 09:55:39 +0000 (11:55 +0200)
commitf9980f6b31c95b6240a9858bd9db63fa228278a0
treec65a217a3fa3e4a1e29977efea2854932da036c4
parent5a81850fe402eb93c27ea249b9d65d67ec9b314d
Bug 8649: Add unit test for C4::Search

This patch adds a unit test for C4::Search in t/db_dependent. In order
to test the functioning of the Zebra search, this patch actually includes
an entire Zebra sandbox, and pre-indexed files, which are stored in
t/db_dependent/data (the configuration files are generated on the fly).

This test depends on Test::Warn, Test::MockModule, and DBD::Mock.

To test:
1) Run the test. There should be no failures, and no warnings.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: wajasu <matted-34813@mypacks.net>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
17 files changed:
C4/Installer/PerlDependencies.pm
t/db_dependent/Search.t
t/db_dependent/data/var/lib/zebradb/authorities/key/README [new file with mode: 0644]
t/db_dependent/data/var/lib/zebradb/authorities/register/README [new file with mode: 0644]
t/db_dependent/data/var/lib/zebradb/authorities/shadow/README [new file with mode: 0644]
t/db_dependent/data/var/lib/zebradb/authorities/tmp/README [new file with mode: 0644]
t/db_dependent/data/var/lib/zebradb/biblios/key/README [new file with mode: 0644]
t/db_dependent/data/var/lib/zebradb/biblios/register/README [new file with mode: 0644]
t/db_dependent/data/var/lib/zebradb/biblios/shadow/README [new file with mode: 0644]
t/db_dependent/data/var/lib/zebradb/biblios/tmp/README [new file with mode: 0644]
t/db_dependent/data/var/lock/zebradb/authorities/README [new file with mode: 0644]
t/db_dependent/data/var/lock/zebradb/biblios/README [new file with mode: 0644]
t/db_dependent/data/var/log/README [new file with mode: 0644]
t/db_dependent/data/var/run/zebradb/README [new file with mode: 0644]
t/db_dependent/data/zebraexport/authority/exported_records [new file with mode: 0644]
t/db_dependent/data/zebraexport/biblio/exported_records [new file with mode: 0644]
t/db_dependent/zebra_config.pl [new file with mode: 0755]