]> 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)
committerFrédéric Demians <f.demians@tamil.fr>
Sat, 22 Oct 2016 12:57:56 +0000 (14:57 +0200)
commit87d7fafaef82408ee296c5b7f5ca880048807b07
treedf5502f4cca4cf88b3e76e6cd439574870dec6b2
parent28eb0a880e2bf249da464f7da75ad409f9ffc919
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>
(cherry picked from commit d5ca2d0433b75317c5a2b855ee77372ca93d2223)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
t/db_dependent/Circulation/MarkIssueReturned.t