[Koha-bugs] [Bug 11224] C4::Acquisition need more UT, and more robust ones.

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Nov 9 14:47:09 CET 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11224

--- Comment #1 from mathieu saby <mathieu.saby at univ-rennes2.fr> ---
Created attachment 22848
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=22848&action=edit
[PATCH] Bug 11224 : Add UT to subs of C4::Acquisition returning order(s)


C4::Acquisition need more UT, and more robust ones.

This patch adds UT to
- GetOrder
- GetOrders
- GetCancelledOrders
- GetLateOrders
It refactors UT for SearchOrders

New UT use 2 new subs, used for check the list of fields returns by a sub.
_check_fields_of_order
_check_fields_of_orders
These 2 subs could later be used by other UT

_check_fields_of_order has its own UT (tests n°14,15,16). They should maybe be
commented after this patch is QAed.

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list