[Koha-bugs] [Bug 12457] The module C4::Members.pm needs more unit tests
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Jun 23 16:17:07 CEST 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12457
--- Comment #2 from Yohann Dufour <yohann.dufour at biblibre.com> ---
Created attachment 29173
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=29173&action=edit
Bug 12457: Adding unit tests for the routines AddMessage, GetMessages,
GetMessagesCount, DeleteMessage, GetPendingIssues, GetAllIssues of the module
C4/Members.pm and modification of the routine GetAllIssues
Adding unit tests for the routines AddMessage, GetMessages, GetMessagesCount
and DeleteMessage in t/db_dependent/Members.t
Adding unit tests for the routines GetPendingIssues and GetAllIssues in
separate files : t/db_dependent/Members/GetPendingIssues.t and
t/db_dependent/Members/GetAllIssues.t
The routine GetAllIssues has been modified because it does not test if the
arguments was defined :
- the borrowernumber argument is required
- if the order argument is not given, it takes a value by default : 'date_due
desc'
- the limit argument is optional
Test plan:
1/ Apply the patch
2/ Execute : prove t/db_dependent/Members.t
t/db_dependent/Members/GetAllIssues.t t/db_dependent/Members/GetPendingIssues.t
3/ The result has to be a success without error or warning :
t/db_dependent/Members.t ................... ok
t/db_dependent/Members/GetAllIssues.t ...... ok
t/db_dependent/Members/GetPendingIssues.t .. ok
All tests successful.
Files=3, Tests=83, 5 wallclock secs ( 0.06 usr 0.01 sys + 4.68 cusr 0.26
csys = 5.01 CPU)
Result: PASS
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list