]> git.koha-community.org Git - koha.git/commit
Bug 17587: Remove itemtype-related IsItemIssued.t warnings
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 8 Nov 2016 15:40:45 +0000 (12:40 -0300)
committerMason James <mtj@kohaaloha.com>
Mon, 12 Dec 2016 01:54:09 +0000 (14:54 +1300)
commit4d9dc278fddcccb0d64dacd8665c9a1d061f9b08
tree9252e295af596e4d86ab578c4a6b8d92ed7fa09e
parent6c19b6dbc1746f4d0c616ed6544264078e1de667
Bug 17587: Remove itemtype-related IsItemIssued.t warnings

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

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

Sponsored-by: ByWater Solutions
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Mason James <mtj@kohaaloha.com>
t/db_dependent/Circulation/IsItemIssued.t