Bug 29759: (follow-up) Fix TemplateToolkit.t
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 2 Feb 2022 12:32:37 +0000 (09:32 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 2 Feb 2022 19:48:33 +0000 (09:48 -1000)
commit6c45192a5fecf8b8c4ee2f7035a4dab74f0dbe10
treeeff2c5e253ea3cc829a4d50084e0f1b27d0a42b7
parent34c9fe4c2c22f39d76bbbe2f49b07ff00ccf4d18
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@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/Letters/TemplateToolkit.t