Bug 17716: Remove itemtype-related t/db_dependent/CourseReserves.t
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 2 Dec 2016 18:21:58 +0000 (15:21 -0300)
committerKatrin Fischer <katrin.fischer.83@web.de>
Mon, 5 Dec 2016 20:24:18 +0000 (21:24 +0100)
commit1ee1b7bbc46b92e655a69d248176401580ccdacd
treeda6a558f9e428cf5e4c5a5eed69cba2bd820aa64
parent8be6a14c6284ecbb5ae938f71ad6706458c08e63
Bug 17716: Remove itemtype-related t/db_dependent/CourseReserves.t

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

To test:
- Run
  $ prove t/db_dependent/CourseReserves.t
=> FAIL: lots of warnings about "item-level_itypes set but no itemtype
  set for item"
- Apply the patch
- Run:
  $ prove t/db_dependent/CourseReserves.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/CourseReserves.t