]> git.koha-community.org Git - koha.git/commit
Bug 16561 - Bug 15877 followup to fix tests
authorNick Clemens <nick@bywatersolutions.com>
Sat, 21 May 2016 23:59:07 +0000 (19:59 -0400)
committerKyle M Hall <kyle@bywatersolutions.com>
Mon, 23 May 2016 16:53:51 +0000 (16:53 +0000)
commitff898e88330d4572daac241d4a480f616fd0dcc7
treefaaabf7675bf47dc72105172d4a1fc3bf1ab01a3
parent3bf5a0569560f6a8f51b7d2d16fb788fa437a826
Bug 16561 - Bug 15877 followup to fix tests

When I altered the tests to avoid accidental deletion of all items, I
didn't rollback the transaction, hence the tests now delete all items
from a db when run.

This patch rollsback the transaction so items are not deleted from your db

To test:
1 - Backup your db
2 - prove -v t/db_dependent/Barcodes.t
3 - Note that all items and issues are deleted from the DB
4 - Restore your DB
5 - Apply this patch
6 - prove -v t/db_dependent/Barcodes.t
7 - Your DB should eb unchanged

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/Barcodes.t