]> git.koha-community.org Git - koha.git/commit
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)
committerJulian Maurice <julian.maurice@biblibre.com>
Wed, 10 May 2017 09:53:22 +0000 (11:53 +0200)
commit00e12b7757a0b2266cf32533020e010f06d4b381
tree3e91bee760ffa343a1350fe88b5d9029ba567ea1
parent2dbb6a694224cf32e9b61234d038d7d6c8d7ec4d
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>
(cherry picked from commit e7ee2fd59f39f6092cb2420c8fed25df096e1529)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
t/db_dependent/Serials.t