[Koha-bugs] [Bug 29759] Refund credit when cancelling an article request

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 2 13:40:05 CET 2022


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

Jonathan Druart <jonathan.druart+koha at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #130093|0                           |1
        is obsolete|                            |

--- Comment #28 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Created attachment 130094
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=130094&action=edit
Bug 29759: (follow-up) Fix TemplateToolkit.t

This patch makes the tests set debit_id to undef instead of random data.
This way tests don't break when $article_request->cancel is invoked and
a refund is tried.

To test:
1. Run:
   $ kshell
  k$ prove t/db_dependent/Letters/TemplateToolkit.t
=> FAIL: Boo, tests fail, random garbage is not a debit
2. Apply this patch
3. Repeat 1
=> SUCCESS: Tests pass!
4. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart at bugs.koha-community.org>

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


More information about the Koha-bugs mailing list