]> git.koha-community.org Git - koha.git/commit
Bug 17647: Remove itemtype-related CancelReceipt.t warnings
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 16 Nov 2016 19:44:44 +0000 (16:44 -0300)
committerMason James <mtj@kohaaloha.com>
Mon, 12 Dec 2016 01:54:12 +0000 (14:54 +1300)
commit07ec2afd993e26d98f86850759e3e219457c26cd
tree51fee10a6df2cf3f01fddf6cf9e0048dc08ab644
parent12a1b3263c4710e3c30b3d8c95f5d6ea3af16d13
Bug 17647: Remove itemtype-related CancelReceipt.t warnings

This patch makes t/db_dependent/Acquisition/CancelReceipt.t create
good sample data for its tests. It does so by creating a random
itemtype.

To test:
- Run
  $ prove t/db_dependent/Acquisition/CancelReceipt.t
=> FAIL: lots of warnings about "item-level_itypes set but no itemtype
set for item"
- Apply the patch
- Run:
  $ prove t/db_dependent/Acquisition/CancelReceipt.t
=> SUCCESS: Tests are green, and no warnings.
- Sign off :-D

Sponsored-by: ByWater Solutions
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Mason James <mtj@kohaaloha.com>
t/db_dependent/Acquisition/CancelReceipt.t