Bug 21912: Add tests for Koha::Objects->search
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 29 Nov 2018 14:59:05 +0000 (11:59 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 14 Jan 2019 14:08:38 +0000 (14:08 +0000)
commit464dcd7d9e2e7ba4e604ef0e7b5665dd8cd8b9b3
tree130b9b84cdc1bedc0605b38eba0a60bac441d776
parent5e1efa83f7deb365682e0405b84963c36a40e5da
Bug 21912: Add tests for Koha::Objects->search

This patch adds simple tests for the current behaviour. Specifically the
return values in both scalar and list context.

To test:
- Apply this patch
- Run:
  $ prove t/db_dependent/Koha/Objects.t
=> SUCCESS: Tests pass
- Sign off :-D

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 7669697732e3abf3b2c5a32446115d277be7342e)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
t/db_dependent/Koha/Objects.t