]> git.koha-community.org Git - koha.git/commit
Bug 17636: Remove itemtype-related GetIssues.t warnings
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 15 Nov 2016 20:40:22 +0000 (17:40 -0300)
committerMason James <mtj@kohaaloha.com>
Mon, 12 Dec 2016 01:54:12 +0000 (14:54 +1300)
commit4c46f0c017324a02e33209f1945dcdb58d3be940
tree73ab928337ce41d717d27e9d868a8c947c670510
parent33b1ab4440d91deb374d2a1bf5391944e359a025
Bug 17636: Remove itemtype-related GetIssues.t warnings

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

To test:
- Run
  $ prove t/db_dependent/Circulation/GetIssues.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/GetIssues.t
=> SUCCESS: Tests are green, and no warnings.
- Sign off :-D

Sponsored-by: ByWater Solutions
Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com>
All test pass successfuly

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Mason James <mtj@kohaaloha.com>
t/db_dependent/Circulation/GetIssues.t