]> git.koha-community.org Git - koha.git/commit
Bug 11224 : Add UT to routines of C4::Acquisition returning order(s)
authorMathieu Saby <mathieu.saby@univ-rennes2.fr>
Sat, 9 Nov 2013 13:28:07 +0000 (14:28 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 10 Mar 2014 16:27:21 +0000 (16:27 +0000)
commit575aa91ffa422eecf5bb969a264ed41384bb44d2
treed453236c33617ec56088ddd25ff22ca4260a3bcb
parentbf3b1aac7b7bc422bea26bb2c045be69d93ef0bf
Bug 11224 : Add UT to routines of C4::Acquisition returning order(s)

C4::Acquisition need more UT, and more robust ones.  This patch
adds some.

This patch adds UT to
- GetOrder
- GetOrders
- GetCancelledOrders
- GetLateOrders

It refactors UT for SearchOrders

New UT use 2 new routines, used for check the list of fields returned
by a routine:
    _check_fields_of_order
    _check_fields_of_orders
These 2 routines could later be used by other UT

_check_fields_of_order has its own UT (tests n°14,15,16).

to test :
prove -v t/db_dependent/Acquisition.t

Signed-off-by: Liz Rea <liz@catalyst.net.nz>
Unit tests pass, passes koha-qa.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Passes koha-qa and t

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/Acquisition.pm
t/db_dependent/Acquisition.t