]> git.koha-community.org Git - koha.git/commit
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)
committerMason James <mtj@kohaaloha.com>
Mon, 12 Dec 2016 01:54:13 +0000 (14:54 +1300)
commitd51ee0f22b63879f5cb6f939d95e5767446504fe
treefc3fdd9f128abf1ae9e1bf1fafa29778f5f2ca2e
parent07ec2afd993e26d98f86850759e3e219457c26cd
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: Mason James <mtj@kohaaloha.com>
t/db_dependent/Circulation/CheckIfIssuedToPatron.t
t/db_dependent/Circulation/IsItemIssued.t
t/db_dependent/Circulation/transfers.t