https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42418

--- Comment #105 from Tomás Cohen Arazi (tcohen) <[email protected]> ---
Created attachment 208548
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=208548&action=edit
Bug 42418: (QA follow-up) Add full coverage for _attach_messages_to_checkin

_attach_messages_to_checkin (moved back to C4::Circulation in the
previous follow-up) had no coverage at all, direct or indirect -
existing tests only ever assert on AddReturn's legacy $messages
hashref, never on the Koha::Checkin object_messages this function
actually produces. It's a large function (~185 lines, 27 recognised
message keys), so cover it directly rather than trying to drive all
27 through real AddReturn scenarios, following the existing precedent
in this file of calling C4::Circulation private subs directly in
tests (_GetCircControlBranch, _FixOverduesOnReturn).

Test plan:
1. prove t/db_dependent/Circulation.t
=> SUCCESS: 92 tests pass, all 27 message keys exercised.

Signed-off-by: Martin Renvoize <[email protected]>
Signed-off-by: Tomás Cohen Arazi <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to