]> git.koha-community.org Git - koha.git/commit
Bug 17430: Make MarkIssueReturned.t create its own data
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 12 Oct 2016 09:01:54 +0000 (11:01 +0200)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Mon, 17 Oct 2016 22:55:37 +0000 (22:55 +0000)
commitd5ca2d0433b75317c5a2b855ee77372ca93d2223
tree30b89bea0e1123b9b5d942d39ba5ea934e62bb2f
parentf75afef59175933f7e93b04bdcbdcf5180b0b024
Bug 17430: Make MarkIssueReturned.t create its own data

This patch makes MarkIssueReturned.t use t::lib::TestBuilder to create
the data it needs.

To test:
- On master, have a category with categorycode = C
- Run:
  $ prove t/db_dependent/Circulation/MarkIssueReturned.t
=> FAIL: primary key problems make the tests fail
- Apply the patch
- Run:
  $ prove t/db_dependent/Circulation/MarkIssueReturned.t
=> SUCCESS: Tests are green!
- Sign off :-D

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
t/db_dependent/Circulation/MarkIssueReturned.t