]> git.koha-community.org Git - koha.git/commit
Bug 30007: (follow-up) Adapt tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 2 Mar 2022 18:05:02 +0000 (15:05 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 3 Mar 2022 07:52:50 +0000 (21:52 -1000)
commitaab535f8d1d325e9d660839560db9de2b9abb0ae
tree9f21649663d1220083c0737ade11a304542dfcf8
parent8fd2083295af0376a00651c256ae6e6e2444f61d
Bug 30007: (follow-up) Adapt tests

This patch adapts tests to acknowledge ->cancel and ->fill methods won't
yield 'undef' borrowernumber when anonymization takes place, and even
further, and exception will be thrown and cancellation/fulfillment will
be rejected.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Hold.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Bonus: this problem was hidding bad tests caused by 29857, fixed on this
one as well.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/Koha/Hold.t