]> 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)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 18 Nov 2016 14:01:06 +0000 (14:01 +0000)
commit01097457ee8958386712f450200d816a1fdfaf7c
treeee902dd6a2413844d54804a4b3bbd661a662a565
parenta8f3d8cfd58f7af9f5b8a13790a1fe320329f33b
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: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/Acquisition/CancelReceipt.t