]> git.koha-community.org Git - koha.git/commit
Bug 17722: Make PatronLists.t run inside a transaction
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 5 Dec 2016 14:19:12 +0000 (11:19 -0300)
committerKatrin Fischer <katrin.fischer.83@web.de>
Mon, 12 Dec 2016 22:21:18 +0000 (23:21 +0100)
commit10755f1c74b442289c1229caf4cfdda6a3bb32ad
tree626d79f3d4530c098862d55be26ee0e69ce70917
parent317bd60f18b3ceaec91709ec56f26c27f16359b9
Bug 17722: Make PatronLists.t run inside a transaction

This patch makes t/db_dependent/PatronLists.t run inside a transaction.
It also makes it generate its own data using t::lib::TestBuilder instead
of relying on sample patrons on the DB.

To test:
- Run:
  $ prove t/db_dependent/PatronLists.t
=> SUCCESS: Tests pass
- Apply the patch
- Run:
  $ prove t/db_dependent/PatronLists.t
=> SUCCESS: Tests pass
- Sign off :-D

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 427ba8b0c7f7a976e3c90a4f811836532e0f3875)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
t/db_dependent/PatronLists.t