]> git.koha-community.org Git - koha.git/commit
Bug 17603: Remove itemtype-related Borrower_Discharge.t warnings
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 9 Nov 2016 19:45:38 +0000 (16:45 -0300)
committerMason James <mtj@kohaaloha.com>
Mon, 12 Dec 2016 01:54:09 +0000 (14:54 +1300)
commitfaa9b66a72fd973fcfbf3ca91a5c0962edf73418
tree08dfcf36559c4e35ca28c82fb7029ba0fc618ec2
parent78ae5d237eb1913e19e19030da7557d1ff8ef823
Bug 17603: Remove itemtype-related Borrower_Discharge.t warnings

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

To test:
- Run
  $ prove t/db_dependent/Patron/Borrower_Discharge.t
=> FAIL: lots of warnings about "item-level_itypes set but no itemtype
set for item"
- Apply the patch
- Run:
  $ prove t/db_dependent/Patron/Borrower_Discharge.t
=> SUCCESS: Tests are green, and no warnings.
- Sign off :-D

Sponsored-by: ByWater Solutions
Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Mason James <mtj@kohaaloha.com>
t/db_dependent/Patron/Borrower_Discharge.t