]> 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)
committerKatrin Fischer <katrin.fischer.83@web.de>
Mon, 5 Dec 2016 20:23:44 +0000 (21:23 +0100)
commit8be6a14c6284ecbb5ae938f71ad6706458c08e63
tree026cba2e7672a92edc7793876b47227033193a03
parentbb312ded2a9217053929ba9e973842456d6d1aec
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>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
t/db_dependent/Holds/RevertWaitingStatus.t