Bug 17592: Remove itemtype-related maxsuspensiondays.t warnings
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 8 Nov 2016 19:28:07 +0000 (16:28 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Sat, 12 Nov 2016 02:37:08 +0000 (02:37 +0000)
commitddd6f6917b6f0012a15d277d1f4f2a6890b7aecf
treefe9c00e9aecd69d5762f3330240fe0ee22a93be9
parent0b56b5857d3e37ab486564a4465f6e00af3599d3
Bug 17592: Remove itemtype-related maxsuspensiondays.t warnings

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

To test:
- Run
  $ prove t/db_dependent/Circulation/IssuingRules/maxsuspensiondays.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/IssuingRules/maxsuspensiondays.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/IssuingRules/maxsuspensiondays.t