]> git.koha-community.org Git - koha.git/commit
Bug 17715: Remove itemtype-related t/db_dependent/Holds/RevertWaitingStatus.t warnings
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 2 Dec 2016 17:32:30 +0000 (14:32 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Mon, 5 Dec 2016 15:30:20 +0000 (15:30 +0000)
commitb74d04543593bc4ead9da839c6692bf2d1841712
tree0d8dc9410d5ae453f5cd302b6b380479eeab3192
parent2dd4ecb4c7e0c9b717d6b6dec42ec3ad735236be
Bug 17715: Remove itemtype-related t/db_dependent/Holds/RevertWaitingStatus.t warnings

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

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

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/Holds/RevertWaitingStatus.t