]> git.koha-community.org Git - koha.git/commit
Bug 17572: Remove itemtype-related warnings from issue.t
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 7 Nov 2016 17:55:41 +0000 (14:55 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Sat, 12 Nov 2016 02:33:47 +0000 (02:33 +0000)
commit4bf2a1d81f97e56afea057abe6202001fb98e6eb
tree3c4da48ec06c0968c8b7acfba50a00586c5e2b90
parent0550385730d09a4def0e1d976dec746a3074312a
Bug 17572: Remove itemtype-related warnings from issue.t

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

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