Bug 12738: (regression tests) C4::Context should set keyword search as default for...
authorTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 8 Aug 2014 14:59:43 +0000 (11:59 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 11 Aug 2014 13:05:59 +0000 (10:05 -0300)
commitad0d975eda9408fbb4342fb0753f4dd40d9c63f0
treeab4f52bc2ab2513b28fb89aa7491c513df5c2962
parentbe7009fdb777fc7e3cc9f3fe598f938185743c12
Bug 12738: (regression tests) C4::Context should set keyword search as default for QueryParser

This patch introduces tests for the QueryParser PQF driver usage in Koha. Specifically its
initialization on C4::Context, and initial setup.

It also introduces a .pl script that is used to load C4::Context with different hash randomization
seeds on purpose, to verify the initialization result is deterministic and consistent between
runs.

To test:
  $ prove -v t/db_dependent/QueryParser.t

It should fail because different default_search_class is set on each run, and it is not often the
one we expect.

Sponsored-by: Universidad Nacional de Cordoba
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
t/db_dependent/QueryParser.t [new file with mode: 0644]
t/db_dependent/default_search_class.pl [new file with mode: 0755]