Bug 18460: Fix undefined itemtype warning in Serials.t
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 19 Apr 2017 15:15:46 +0000 (12:15 -0300)
committerMason James <mtj@kohaaloha.com>
Sun, 30 Apr 2017 11:19:59 +0000 (23:19 +1200)
commite7ee2fd59f39f6092cb2420c8fed25df096e1529
treeebd8e3b00bdbc3f227b95201905eaee0fc40fd23
parenta98b5468baca4716357643c87f5cb9e02f62c343
Bug 18460: Fix undefined itemtype warning in Serials.t

This patch makes the test create an itemtype, and use it for the created item so there's no warning.

To test:
- Run:
  $ prove t/db_dependent/Serials.t
=> FAIL: item-level_itypes set but no itemtype set... warning raised
- Apply the patch
- Run:
  $ prove t/db_dependent/Serials.t
=> SUCCESS: Tests pass and no warning is raised
- Sign off :-D

Signed-off-by: Marc VĂ©ron <veron@veron.ch>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Mason James <mtj@kohaaloha.com>
t/db_dependent/Serials.t