]> 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)
committerMason James <mtj@kohaaloha.com>
Mon, 12 Dec 2016 01:54:08 +0000 (14:54 +1300)
commit1a9e5046607cec6dff54eef486dd86f40b0a16ed
tree0b0377e3f84f7fe0a9425b846f0d64443fbe9fc3
parent92e5bbe6f215ceb956e73d498ebe1502f593b51a
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: Mason James <mtj@kohaaloha.com>
t/db_dependent/Circulation/issue.t