]> 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)
committerKyle M Hall <kyle@bywatersolutions.com>
Sat, 12 Nov 2016 02:38:19 +0000 (02:38 +0000)
commit62c09397f2c5e5dd1df2c0cccf190c80363b8033
tree99bd819cd2d8895df554fc5934b22140ca02f144
parentddd6f6917b6f0012a15d277d1f4f2a6890b7aecf
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: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/Patron/Borrower_Discharge.t