]> 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)
committerJulian Maurice <julian.maurice@biblibre.com>
Wed, 25 May 2016 08:34:56 +0000 (10:34 +0200)
commit97718c1f269d980f70242868a93eae0dcda66931
tree292901d76d70ab7b4287cfb1d6522a28ba98158f
parent31973fca4cc60f2a58d917c14a00eebfef5e5a3c
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>
(cherry picked from commit ff898e88330d4572daac241d4a480f616fd0dcc7)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
t/db_dependent/Barcodes.t