]> 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)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 9 Dec 2016 17:50:14 +0000 (17:50 +0000)
commit427ba8b0c7f7a976e3c90a4f811836532e0f3875
treeb2095ba598c324eb15d12f558a75cdff9d151887
parent36c608ab846c97aa76ea2fd721c7ce09f2c638ed
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>
t/db_dependent/PatronLists.t