]> git.koha-community.org Git - koha.git/commit
Bug 29759: (follow-up) Fix api/v1/article_requests.t
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 2 Feb 2022 12:49:57 +0000 (09:49 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 2 Feb 2022 19:48:33 +0000 (09:48 -1000)
commit04dd54c6111a5a70ec4b2da618851ae6235d5dbc
tree169a3329751d31105991f6b24895e3e14f1db6f1
parent6c45192a5fecf8b8c4ee2f7035a4dab74f0dbe10
Bug 29759: (follow-up) Fix api/v1/article_requests.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/api/v1/article_requests.t