Bug 17587: Remove itemtype-related IsItemIssued.t warnings
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 8 Nov 2016 15:40:45 +0000 (12:40 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Sat, 12 Nov 2016 02:36:42 +0000 (02:36 +0000)
commit0b56b5857d3e37ab486564a4465f6e00af3599d3
tree230ec78d63e7ab466f28dd36ece4a9a2a3251d93
parentbc6a51c065c9a0f829d3d63f0e26bbd957bf5308
Bug 17587: Remove itemtype-related IsItemIssued.t warnings

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

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

Sponsored-by: ByWater Solutions
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/Circulation/IsItemIssued.t