Bug 17932: Unit tests
commit02f781fee06cb9ce8df8940acc2e8833cb57644b
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 24 Jan 2017 13:41:00 +0000 (24 10:41 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 17 Feb 2017 15:33:00 +0000 (17 15:33 +0000)
tree4f9171406fb48f78d2c254418d402f7ca0a43f99
parent39d090a8b6ecb2c97197f839a05c930a36ea6504
Bug 17932: Unit tests

This patch adds unit tests for the Koha::Object::TO_JSON function.
It tests on top of Koha::Patron as Koha::Object needs to be
instantiated.

To test:
- Apply the patch
- Run:
  $ prove -v t/db_dependent/Koha/Object.t
=> SUCCESS: New tests for TO_JSON are run and return green.
- Sign off :-D

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/Koha/Object.t