Bug 17653: Remove itemtype-related t/db_dependent/Circulation* warnings
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 17 Nov 2016 15:29:14 +0000 (12:29 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 18 Nov 2016 14:02:49 +0000 (14:02 +0000)
commit4366a0b4699c9c16ce63e36fe7e5c3c0317c17e6
treec657781cf6ad4a634c876f0222493a060b1e4d31
parent01097457ee8958386712f450200d816a1fdfaf7c
Bug 17653: Remove itemtype-related t/db_dependent/Circulation* warnings

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

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

Sponsored-by: ByWater Solutions
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/Circulation/CheckIfIssuedToPatron.t
t/db_dependent/Circulation/IsItemIssued.t
t/db_dependent/Circulation/transfers.t