]> git.koha-community.org Git - koha.git/commit
Bug 17646: Remove itemtype-related IssueSlip.t warnings
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 16 Nov 2016 13:59:26 +0000 (10:59 -0300)
committerMason James <mtj@kohaaloha.com>
Mon, 12 Dec 2016 01:54:12 +0000 (14:54 +1300)
commit33b1ab4440d91deb374d2a1bf5391944e359a025
tree4a428e859e25d4a0153ae9eea47108632b8ce3ac
parenta84ba9d0217045bcca5f7e13ca616962a510726d
Bug 17646: Remove itemtype-related IssueSlip.t warnings

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

To test:
- Run
  $ prove t/db_dependent/Members/IssueSlip.t
=> FAIL: lots of warnings about "item-level_itypes set but no itemtype
set for item"
- Apply the patch
- Run:
  $ prove t/db_dependent/Members/IssueSlip.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/Members/IssueSlip.t